Method and Apparatus for Transmitting Reference Signal In Device-to-Device (D2D) Communication

ABSTRACT

A method for transmitting information in device-to-device (D2D) communication includes determining, by a first user equipment, in a communication resource for D2D communication, a target resource used to bear a reference signal (RS), where the target resource is according to characteristic information used in selecting the target resource, and the characteristic information used in selecting the target resource includes at least one of the following two items: characteristic information used to uniquely identify the first user equipment, and characteristic information used to uniquely identify a second user equipment that performs D2D communication with the first user equipment; and transmitting, by the first user equipment, the RS to the second user equipment using the target resource.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No.14/639,619, filed on Mar. 5, 2015, which is a continuation ofInternational Patent Application No. PCT/CN2013/083078, filed on Sep. 6,2013, which claims priority to Chinese Patent Application No.201210327486.0, filed on Sep. 6, 2012, all of which are herebyincorporated by reference in their entireties.

TECHNICAL FIELD

The present disclosure relates to the communications field, and morespecifically, relates to a method and an apparatus for transmitting areference signal in device-to-device (D2D) communication.

BACKGROUND

At present, a D2D communication technology is available. In this type ofcommunication mode, terminals (such as user equipment (UE)) can directlycommunicate with each other, which does not require forwarding by a basestation (such as an evolved Node B (eNB)) and shares data load of thebase station. Because D2D communication has only one hop and does notneed an intermediate device, the D2D communication can better utilize aspectrum resource, improve spectrum utilization and a data rate, andalso reduces load of a base station.

In order to improve spectrum utilization and maximize use of aradio-frequency capability of an existing terminal, a D2D communicationlink may share a target resource with an existing communications system.To avoid interfering with another terminal in the system, D2Dcommunication does not use a downlink resource (a link from a basestation to a terminal) of the communications system, but only reuses anuplink resource (a link from a terminal to a base station) of thecommunications system because an interference immunity of a base stationis much stronger than that of a common terminal. There is a relativelyhigh likelihood that two D2D devices perform communication by means oftime division multiplexing on the uplink resource, which does notrequire support for simultaneous receiving or sending, and requires onlythat while one device sends data, the other device receives data.

In an existing communications system, a target resource for bearing areference signal (RS) is fixed, for example, an uplink demodulationreference signal (UL DRS) is carried by two symbols (an example of thetarget resource), where the two symbols are separately located in themiddle of each timeslot. Therefore, for transmission of an RS in a D2Dcommunication link, a method for transmitting an UL RS in the existingcommunications system may be used, that is, transmission is performedusing a symbol in the middle of each timeslot.

However, because a location of a symbol used to transmit an RS is fixedbetween two timeslots, when the number of terminal pairs that performD2D communication is relatively large, there is a problem that resourcesfor bearing RSs are insufficient.

SUMMARY

Embodiments of the present disclosure provide a method and an apparatusfor transmitting a reference signal in D2D communication, which canensure transmission of a reference signal between each terminal pair.

According to a first aspect, a method for transmitting a referencesignal in D2D communication is provided, where the method includesdetermining, by a first user equipment, in a communication resource forD2D communication, a target resource used to bear an RS, where thetarget resource is according to characteristic information used inselecting the target resource, and the characteristic information usedin selecting the target resource includes at least one of the followingtwo items, characteristic information used to uniquely identify thefirst user equipment, and characteristic information used to uniquelyidentify a second user equipment that performs D2D communication withthe first user equipment; and transmitting, by the first user equipment,the RS to the second user equipment using the target resource.

In a possible implementation manner, the determining, by a first userequipment, in a communication resource for D2D communication, a targetresource used to bear an RS includes selecting, by the first userequipment, the target resource according to the characteristicinformation used in selecting the target resource; and before thetransmitting, by the first user equipment, the RS to the second userequipment using the target resource, the method further includes sendingfirst information to the second user equipment, where the firstinformation is used to indicate the characteristic information used inselecting the target resource by the first user equipment, so that thesecond user equipment determines the target resource according to thefirst information; or sending second information to the second userequipment, where the second information is used to indicate the targetresource, so that the second user equipment determines the targetresource according to the second information.

With reference to the first aspect and the first possible implementationmanner, in a second possible implementation manner, the selecting, bythe first user equipment, the target resource from the communicationresource according to the characteristic information used in selectingthe target resource includes selecting, by the first user equipment, atarget pattern from at least two preset patterns according to thecharacteristic information used in selecting the target resource, whereeach pattern is used to indicate a resource that is in the communicationresource and used to bear an RS, and using a resource indicated by thetarget pattern and used to bear an RS as the target resource, where thesecond information is used to indicate the target pattern.

With reference to the first aspect, the first possible implementationmanner, and the second possible implementation manner, in a thirdpossible implementation manner, the selecting, by the first userequipment, the target resource from the communication resource accordingto the characteristic information used in selecting the target resourceincludes determining, by the first user equipment, a deviation valueaccording to the characteristic information used in selecting the targetresource, where the deviation value is used to indicate a deviation, ina preset pattern, of the target resource relative to a preset resourceused to bear an RS, and determining the target resource according to thedeviation value and the pattern, where the second information is used toindicate the deviation value.

With reference to the first aspect, the first possible implementationmanner, the second possible implementation manner, and the thirdpossible implementation manner, in a fourth possible implementationmanner, the selecting, by the first user equipment, the target resourcefrom the communication resource according to the characteristicinformation used in selecting the target resource includes determining,by the first user equipment, a configured value according to thecharacteristic information used in selecting the target resource, wherethe configured value is used to indicate a position of the targetresource in a preset pattern, and determining the target resourceaccording to the configured value and the pattern, where the secondinformation is used to indicate the configured value.

With reference to the first aspect, the first possible implementationmanner, the second possible implementation manner, the third possibleimplementation manner, and the fourth possible implementation manner, ina fifth possible implementation manner, the target resource is selectedfrom the communication resource by the second user equipment accordingto the characteristic information used in selecting the target resource;and the determining, by a first user equipment, in a communicationresource for D2D communication, a target resource used to bear an RSincludes receiving, by the first user equipment, third information sentby the second user equipment, where the third information is used toindicate the characteristic information used in selecting the targetresource by the second user equipment, and determining the targetresource according to the third information; or, receiving, by the firstuser equipment, fourth information sent by the second user equipment,where the fourth information is used to indicate the target resource,and determining the target resource according to the fourth information.

With reference to the first aspect, the first possible implementationmanner, the second possible implementation manner, the third possibleimplementation manner, the fourth possible implementation manner, andthe fifth possible implementation manner, in a sixth possibleimplementation manner, the target resource is selected from thecommunication resource by a base station device according to thecharacteristic information used in selecting the target resource; andthe determining, by a first user equipment, a target resource includesreceiving, by the first user equipment, fifth information sent by thebase station device, where the fifth information is used to indicate thecharacteristic information used in selecting the target resource by thebase station device, and determining the target resource according tothe fifth information; or, receiving, by the first user equipment, sixthinformation sent by the base station device, where the sixth informationis used to indicate the target resource, and determining the targetresource according to the sixth information.

With reference to the first aspect, the first possible implementationmanner, the second possible implementation manner, the third possibleimplementation manner, the fourth possible implementation manner, thefifth possible implementation manner, and the sixth possibleimplementation manner, in a seventh possible implementation manner, thetarget resource includes at least one of a time domain resource, afrequency domain resource, a space domain resource, and a code domainresource.

According to a second aspect, a method for transmitting a referencesignal in D2D communication is provided, where the method includesacquiring characteristic information used in selecting a targetresource, where the characteristic information used in selecting thetarget resource includes at least one of the following two items,characteristic information used to uniquely identify a first userequipment, and characteristic information used to uniquely identify asecond user equipment that performs D2D communication with the firstuser equipment; selecting, from a communication resource for the D2Dcommunication according to the characteristic information used inselecting the target resource, the target resource used to bear a RS;and sending fifth information to at least one user equipment of thefirst user equipment and the second user equipment, where the fifthinformation is used to indicate the characteristic information used inselecting the target resource, so that the at least one user equipmentdetermines, according to the fifth information, the target resource usedto bear the RS; or sending sixth indication information to the at leastone user equipment, where the sixth information is used to indicate thetarget resource, so that the at least one user equipment determines,according to the sixth information, the target resource used to bear theRS.

In a possible implementation manner, the selecting, from a communicationresource for the D2D communication according to the characteristicinformation used in selecting the target resource, the target resourceused to bear an RS includes selecting a target pattern from at least twopreset patterns according to the characteristic information used inselecting the target resource, where each pattern is used to indicate aresource that is in the communication resource and used to bear an RS,and using a resource indicated by the target pattern and used to bear anRS as the target resource, where the sixth information is used toindicate the target pattern.

With reference to the second aspect and the first possibleimplementation manner, in a second possible implementation manner, theselecting, from a communication resource for the D2D communicationaccording to the characteristic information used in selecting the targetresource, the target resource used to bear an RS includes determining adeviation value according to the characteristic information used inselecting the target resource, where the deviation value is used toindicate a deviation, in a preset pattern, of the target resourcerelative to a preset resource used to bear an RS; and determining thetarget resource according to the deviation value and the pattern, wherethe sixth information is used to indicate the deviation value.

With reference to the second aspect, the first possible implementationmanner, and the second possible implementation manner, in a thirdpossible implementation manner, the selecting, from a communicationresource for the D2D communication according to the characteristicinformation used in selecting the target resource, the target resourceused to bear an RS includes determining a configured value according tothe characteristic information used in selecting the target resource,where the configured value is used to indicate a location of the targetresource in a preset pattern; and determining the target resourceaccording to the configured value and the pattern, where the sixthinformation is used to indicate the configured value.

With reference to the second aspect, the first possible implementationmanner, the second possible implementation manner, and the thirdpossible implementation manner, in a fourth possible implementationmanner, the target resource includes at least one of a time domainresource, a frequency domain resource, a space domain resource, or acode domain resource.

According to a third aspect, an apparatus for transmitting a referencesignal in D2D communication is provided, where the apparatus includes aprocessing unit configured to enable a first user equipment todetermine, from a communication resource for D2D communication, a targetresource used to bear a RS, and control a receiving unit and a sendingunit to transmit the RS using the target resource, where the targetresource is according to characteristic information used in selectingthe target resource, and the characteristic information used inselecting the target resource includes at least one of the following twoitems, characteristic information used to uniquely identify a first userequipment, and characteristic information used to uniquely identify asecond user equipment that performs D2D communication with the firstuser equipment; the receiving unit configured to receive the RS; and thesending unit configured to send the RS.

In a possible implementation manner, the processing unit is configuredto select the target resource from the communication resource accordingto the characteristic information used in selecting the target resource;and the sending unit is further configured to send first information tothe second user equipment, where the first information is used toindicate the characteristic information used in selecting the targetresource by the first user equipment, so that the second user equipmentdetermines the target resource according to the first information; or isconfigured to send second information to the second user equipment,where the second information is used to indicate the target resource, sothat the second user equipment determines the target resource accordingto the second information.

With reference to the third aspect and the first possible implementationmanner, in a second possible implementation manner, the processing unitis configured to select a target pattern from at least two presetpatterns according to the characteristic information used in selectingthe target resource, where each pattern is used to indicate a resourcethat is in the communication resource and used to bear an RS; and isconfigured to use a resource indicated by the target pattern and used tobear an RS as the target resource, where the second information is usedto indicate the target pattern.

With reference to the third aspect, the first possible implementationmanner and the second possible implementation manner, in a thirdpossible implementation manner, the processing unit is configured todetermine a deviation value according to the characteristic informationused in selecting the target resource, where the deviation value is usedto indicate a deviation, in a preset pattern, of the target resourcerelative to a preset resource used to bear an RS; and is configured todetermine the target resource according to the deviation value and thepattern, where the second information is used to indicate the deviationvalue.

With reference to the third aspect, the first possible implementationmanner, the second possible implementation manner, and the thirdpossible implementation manner, in a fourth possible implementationmanner, the processing unit is configured to determine a configuredvalue according to the characteristic information used in selecting thetarget resource, where the configured value is used to indicate alocation of the target resource in a preset pattern; and determining thetarget resource according to the configured value and the pattern, wherethe second information is used to indicate the configured value.

With reference to the third aspect, the first possible implementationmanner, the second possible implementation manner, the third possibleimplementation manner, and the fourth possible implementation manner, ina fifth possible implementation manner, the target resource is selectedfrom the communication resource by the second user equipment accordingto the characteristic information used in selecting the target resource,the receiving unit is further configured to receive third informationsent by the second user equipment, where the third information is usedto indicate the characteristic information used in selecting the targetresource by the second user equipment, and the processing unit isfurther configured to determine the target resource according to thethird information; or, the receiving unit is further configured toreceive fourth information sent by the second user equipment, where thefourth information is used to indicate the target resource, and theprocessing unit is further configured to determine the target resourceaccording to the fourth information.

With reference to the third aspect, the first possible implementationmanner, the second possible implementation manner, the third possibleimplementation manner, the fourth possible implementation manner, andthe fifth possible implementation manner, in a sixth possibleimplementation manner, the target resource is selected by a base stationdevice according to the characteristic information used in selecting thetarget resource, the receiving unit is further configured to receivefifth information sent by the base station device, where the fifthinformation is used to indicate the characteristic information used inselecting the target resource by the base station device, and theprocessing unit is further configured to determine the target resourceaccording to the fifth information; or, the receiving unit is furtherconfigured to receive sixth information sent by the base station device,where the sixth information is used to indicate the target resource, andthe processing unit is further configured to determine the targetresource according to the sixth information.

With reference to the third aspect, the first possible implementationmanner, the second possible implementation manner, the third possibleimplementation manner, the fourth possible implementation manner, thefifth possible implementation manner, and the sixth possibleimplementation manner, in a seventh possible implementation manner, thetarget resource includes at least one of a time domain resource, afrequency domain resource, a space domain resource, and a code domainresource.

According to a fourth aspect, an apparatus for transmitting a referencesignal in D2D communication is provided, where the apparatus includes anacquiring unit configured to acquire characteristic information used inselecting a target resource, where the characteristic information usedin selecting the target resource includes at least one of the followingtwo items, characteristic information used to uniquely identify thefirst user equipment, and characteristic information used to uniquelyidentify a second user equipment that performs D2D communication withthe first user equipment; a processing unit configured to select, from acommunication resource for the D2D communication according to thecharacteristic information used in selecting the target resource, thetarget resource used to bear a RS; and a sending unit configured to sendfifth information to at least one user equipment of the first userequipment and the second user equipment, where the fifth information isused to indicate the characteristic information used in selecting thetarget resource, so that the at least one user equipment determines,according to the fifth information, the target resource used to bear theRS; or send sixth indication information to the at least one userequipment, where the sixth information is used to indicate the targetresource, so that the at least one user equipment determines, accordingto the sixth information, the target resource used to bear the RS.

In a possible implementation manner, the processing unit is configuredto select a target pattern from at least two preset patterns accordingto the characteristic information used in selecting the target resource,where each pattern is used to indicate an RS resource that is in thecommunication resource and used to bear an RS; and is configured to usean RS resource indicated by the target pattern as the target resource,where the sixth information is used to indicate the target pattern.

With reference to the fourth aspect and the first possibleimplementation manner, in a second possible implementation manner, theprocessing unit is configured to determine a deviation value accordingto the characteristic information used in selecting the target resource,where the deviation value is used indicate a deviation, in a presetpattern, of the target resource relative to a preset RS resource used tobear an RS, and the pattern is used to indicate an RS resource that isin the communication resource and used to bear an RS; and determine thetarget resource according to the deviation value, where the sixthinformation is used to indicate the deviation value.

With reference to the fourth aspect, the first possible implementationmanner, and the second possible implementation manner, in a thirdpossible implementation manner, the processing unit is configured todetermine a configured value according to the characteristic informationused in selecting the target resource, where the configured value isused indicate a location of the target resource in the communicationresource; and determine the target resource according to the configuredvalue, where the sixth information is used to indicate the configuredvalue.

With reference to the fourth aspect, the first possible implementationmanner, the second possible implementation manner, and the thirdpossible implementation manner, in a fourth possible implementationmanner, the target resource includes at least one of a time domainresource, a frequency domain resource, a space domain resource, or acode domain resource.

In the method and the apparatus for transmitting a reference signalaccording to the embodiments of the present disclosure, a targetresource used to bear a reference signal is determined according tocharacteristic information of a user equipment that performs D2Dcommunication, which can implement dynamic configuration of a resource,so that transmission of a reference signal between each terminal paircan still be ensured even in a case in which the number of terminalpairs that perform D2D communication is relatively large.

BRIEF DESCRIPTION OF DRAWINGS

To describe the technical solutions in the embodiments of the presentdisclosure more clearly, the following briefly introduces theaccompanying drawings for describing the embodiments of the presentdisclosure. The accompanying drawings in the following description showmerely some embodiments of the present disclosure, and a person ofordinary skill in the art may still derive other drawings from theseaccompanying drawings without creative efforts.

FIG. 1 is a schematic flowchart of a method for transmitting a referencesignal in D2D communication according to an embodiment of the presentdisclosure;

FIG. 2A is a schematic diagram that represents configuration of aresource used to bear a reference signal according to an embodiment ofthe present disclosure;

FIG. 2B is a schematic diagram that represents another configuration ofa resource used to bear a reference signal according to an embodiment ofthe present disclosure;

FIG. 2C is a schematic diagram that represents still anotherconfiguration of a resource used to bear a reference signal according toan embodiment of the present disclosure;

FIG. 3A is a schematic diagram that represents configuration of aresource used to bear a reference signal according to another embodimentof the present disclosure;

FIG. 3B is a schematic diagram that represents configuration of aresource used to bear a reference signal according to still anotherembodiment of the present disclosure;

FIG. 3C is a schematic diagram that represents configuration of aresource used to bear a reference signal according to still anotherembodiment of the present disclosure;

FIG. 4 is a schematic flowchart of a method for transmitting a referencesignal in D2D communication according to another embodiment of thepresent disclosure;

FIG. 5 is a schematic block diagram of an apparatus for transmitting areference signal in D2D communication according to an embodiment of thepresent disclosure; and

FIG. 6 is a schematic block diagram of an apparatus for transmitting areference signal in D2D communication according to another embodiment ofthe present disclosure.

DESCRIPTION OF EMBODIMENTS

The following clearly describes the technical solutions in theembodiments of the present disclosure with reference to the accompanyingdrawings in the embodiments of the present disclosure. The describedembodiments are a part rather than all of the embodiments of the presentdisclosure. All other embodiments obtained by a person of ordinary skillin the art based on the embodiments of the present disclosure withoutcreative efforts shall fall within the protection scope of the presentdisclosure.

The technical solutions of the present disclosure may be applied tovarious communications systems, such as a Global System for MobileCommunications (GSM), a Code Division Multiple Access (CDMA) system, aWideband Code Division Multiple Access (WCDMA), a general packet radioservice (GPRS), a Long Term Evolution (LTE), and a Long TermEvolution-Advanced (LTE-A).

A UE, also referred to as a mobile terminal, a mobile user equipment, aterminal device, and the like, may communicate with one or more corenetworks through a radio access network (RAN). The user equipment may bea mobile terminal, such as a mobile phone (also referred to as a“cellular” phone) and a computer with a mobile terminal. For example,the user equipment may be a portable, pocket-sized, handheld, computerbuilt-in, or in-vehicle mobile apparatus, which exchanges languageand/or data with the radio access network. In the embodiments of thepresent disclosure, a user equipment refers to a user equipment that canperform D2D communication.

A base station device may be a base station (BTS) in GSM or CDMA, or maybe a base station (Node B) in WCDMA, may be an evolved NodeB in LTE, ormay be a home evolutional Node B (HeNB or He-NodeB) which is not limitedin the present disclosure. However, for ease of description, thefollowing embodiments are described using a Node B as an example.

FIG. 1 shows a schematic flowchart of a method 100, which is describedfrom a perspective of a user equipment, for transmitting a referencesignal in D2D communication according to an embodiment of the presentdisclosure. In this embodiment of the present disclosure, two userequipments that perform D2D communication are called a first userequipment and a second user equipment; in this embodiment, methods fortransmitting a reference signal by the two user equipments are the sameor corresponding to each other. Therefore, for ease of understanding andno loss of generality, the following uses an action of the first userequipment as an example to describe an action at a user equipment side.It should be understood that, the foregoing listed first user equipmentmay be an initiating end of D2D communication, or may be a receiving endof D2D communication, that is, the first user equipment may be any oneof the two user equipments that perform D2D communication, which is notspecifically limited in the present disclosure.

As shown in FIG. 1, the method 100 includes the following steps.

S110. The first user equipment determines, in a communication resourcefor D2D communication, a target resource used to bear a RS, where thetarget resource is according to characteristic information used inselecting the target resource, and the characteristic information usedin selecting the target resource includes at least one of the followingtwo items, characteristic information used to uniquely identify thefirst user equipment, and characteristic information used to uniquelyidentify the second user equipment that performs D2D communication withthe first user equipment.

S120. The first user equipment transmits the RS to the second userequipment using the target resource.

In this embodiment of the present disclosure, a basis (thecharacteristic information of the first user equipment and/or thecharacteristic information of the second user equipment) for determininga target resource used to bear an RS may be stipulated in advance, as anexample rather than limitation, it may be stipulated that a userequipment may determine, according to characteristic information of aninitiating end and/or a receiving end of D2D communication, the targetresource from the resource (including a time domain resource, afrequency domain resource, a space domain resource, or a code domainresource) for D2D communication; or a user equipment may determine,according to first characteristic information (characteristicinformation of an initiating end and/or a receiving end of D2Dcommunication), a first target resource, such as the time domainresource, from the resource (including a time domain resource, afrequency domain resource, a space domain resource, or a code domainresource) for D2D communication, and the user equipment determines,according to second characteristic information (characteristicinformation of an initiating end and/or a receiving end of D2Dcommunication), a second target resource, such as the frequency domainresource, from the resource (including the time domain resource, thefrequency domain resource, the space domain resource, or the code domainresource) for D2D communication. In this way, the user equipment maydetermine a target resource according to the stipulation using the basis(the characteristic information of the first user equipment and/or thecharacteristic information of the second user equipment) correspondingto the stipulation. It should be understood that, the foregoingdescribed first characteristic information and second characteristicinformation may be the same, or may be different, which is notspecifically limited in the present disclosure. For example, for a timedomain resource, if two symbols in a subframe are used to bear an RS,characteristic information used to determine a first symbol andcharacteristic information used to determine a second symbol may be thesame, or may be different, which is not specifically limited in thepresent disclosure.

It should be noted that, the characteristic information is information(which may be, for example, a user identity (UE ID) of a user equipment,or a radio network temporary identity (RNTI) of the user equipment in acommunications system) that uniquely indicates the user equipment in thecommunications system, and the characteristic information can beobtained by a peer user equipment (for example, a user equipment mayacquire characteristic information of a peer device during establishmentof D2D communication). Description of a same or similar case is omittedin the following.

A resource used to bear a reference signal is determined according tocharacteristic information of a user equipment, so that the resourceused to bear the reference signal is not limited to a fixed confinedrange, so that transmission of a reference signal between each terminalpair can still be ensured even in a case in which the number of terminalpairs that perform D2D communication is relatively large.

It should be understood that, the foregoing listed method fordetermining the target resource, and the parameters used in the methodare merely for illustrative description, and the present disclosure isnot limited thereto. Description of a same or similar case is omitted inthe following.

In this embodiment of the present disclosure, the first user equipmentmay independently select the target resource from the resource(including the time domain resource, the frequency domain resource, thespace domain resource, or the code domain resource) for D2Dcommunication, and notify the second user equipment, and thiscorresponds to case 1. Or, the second user equipment may independentlyselect the target resource from the resource (including the time domainresource, the frequency domain resource, the space domain resource, orthe code domain resource) for D2D communication, so that the first userequipment may determine the target resource according to notificationfrom the second user equipment, and this corresponds to case 2. Or, abase station device may independently select the target resource fromthe resource (including the time domain resource, the frequency domainresource, the space domain resource, or the code domain resource) forD2D communication, so that the first user equipment and the second userequipment may determine the target resource according to notificationfrom the base station device, and this corresponds to case 3. Thefollowing separately describes the foregoing listed three cases.

Case 1

In this embodiment of the present disclosure, that the first userequipment determines, in the communication resource for D2Dcommunication, the target resource used to bear the RS includesselecting, by the first user equipment, the target resource from thecommunication resource according to the characteristic information usedin selecting the target resource; and before the first user equipmenttransmits the RS to the second user equipment using the target resource,the method further includes sending first information to the second userequipment, where the first information is used to indicate thecharacteristic information used in selecting the target resource by thefirst user equipment, so that the second user equipment determines thetarget resource according to the first information; or sending secondinformation to the second user equipment, where the second informationis used to indicate the target resource, so that the second userequipment determines the target resource according to the secondinformation.

To be specific, when the target resource is only one of the time domainresource, the frequency domain resource, the space domain resource, orthe code domain resource, or when the target resource includes at leasttwo of the time domain resource, the frequency domain resource, thespace domain resource, or the code domain resource, and the at least tworesources are both based on same characteristic information (such ascharacteristic information of a same user equipment or characteristicinformation of the two user equipments), the first user equipment mayselect, according to the characteristic information of the first userequipment and/or the characteristic information of the second userequipment, the target resource from the resource for the D2Dcommunication, or in other words, determine a mapping relationshipbetween the characteristic information and the target resource.

For example, when single carrier frequency division multiple access(SC-FDMA) is used as an uplink multiple-access scheme, in order tomaintain a single-carrier characteristic, all subcarriers (frequencydomain resources) in a symbol can bear only a reference signal or data.In this way, the reference signal needs to occupy at least one symbol,which cannot be refined to a level of a resource element (RE).Therefore, in this case, selection of a frequency domain resource maynot be considered. For example, a target resource where a subframe hasonly one symbol may be designed, as shown in FIG. 2B; all modulation isbased on an extrapolation method, or an interpolation method may also beconsidered when there is an RS that can be borrowed in a neighboringsubframe. Or, a target resource where a subframe has two symbols may bedesigned, as shown in FIG. 2A and FIG. 2C. When a channel is in a poorcondition, more than two symbols may be used to send an RS, which is notspecifically limited in the present disclosure. In this embodiment ofthe present disclosure, no matter if one symbol, two symbols, or moresymbols are used to send an RS, a resource (including the time domainresource, the frequency domain resource, the space domain resource, orthe code domain resource) that sends the RS is not fixed, and a userequipment or a base station may select, from a D2D target resourceaccording to characteristic information of the user equipment, aresource used to bear the RS.

a. Optionally, in this embodiment of the present disclosure, that thefirst user equipment selects the target resource from the communicationresource according to the characteristic information used in selectingthe target resource includes selecting, by the first user equipment, atarget pattern from at least two preset patterns according to thecharacteristic information used in selecting the target resource, whereeach pattern is used to indicate a resource that is in the communicationresource and used to bear an RS; and using a resource indicated by thetarget pattern and used to bear an RS as the target resource, where thesecond information is used to indicate the target pattern.

To be specific, multiple (such as eight) patterns may be set in advance,where the pattern indicates one or more symbols (an example of thetarget resource) used to bear an RS (such as a demodulation referencesignal), in a subframe (a resource for D2D communication). FIG. 2A showsa pattern, FIG. 2B shows another pattern, and FIG. 2C shows stillanother pattern. The first user equipment may determine, according tocharacteristic information of a user equipment (the characteristicinformation of the first user equipment, or the characteristicinformation of the second user equipment, or the characteristicinformation of the first user equipment and the characteristicinformation of the second user equipment), a pattern used in current D2Dcommunication. For example, a modulus operation may be performed on thetotal number of preset patterns using the characteristic information, todetermine a digit (which, for example, may be represented using threebits), and the digit may be used to indicate a sequence number of thepattern, which is used in the current D2D communication, in the presetmultiple (such as eight) patterns, so that the pattern used in thecurrent D2D communication can be determined.

Therefore, the first user equipment may send the sequence number of theselected pattern in all the patterns to the second user equipment; andthe second user equipment can determine, according to the sequencenumber, the pattern selected by the first user equipment, and use atarget resource indicated by the pattern to bear an RS.

It should be noted herein that, when the characteristic information is anumerical value, the characteristic information may be directly used todetermine a target resource (such as a sequence number of a pattern);when the characteristic information is expressed in another manner (suchas a letter), an characteristic parameter (denoted by S) correspondingto the characteristic information may be further determined using apreset algorithm (a function, a formula, or the like), for example, anyformula of the following formulas 1 to 3 may be used to determine thecharacteristic parameter S:

S₁ = f(X₁) formula 1 S₂ = f(X₂) formula 2 S₃ = f(X₁, X₂) formula 3where X₁ represents the characteristic information of the first userequipment, X₂ represents the characteristic information of the seconduser equipment, and f( ) represents a mapping relationship betweencharacteristic information and a characteristic parameter. In thisembodiment of the present disclosure, the mapping relationship betweenthe characteristic information and the characteristic parameter may belinear, or may be nonlinear, which is not specifically limited in thepresent disclosure. Therefore, the characteristic parameter may be usedto replace the characteristic information for calculation in theforegoing process. In this embodiment of the present disclosure, thecharacteristic parameter S may uniquely correspond to one user equipmentor a pair of user equipments. Description of a same or similar case isomitted in the following. For ease of description, in the followingdescriptions, the characteristic parameter S is considered as a basisfor selecting (or determining) a target resource.

b. Optionally, in this embodiment of the present disclosure, that thefirst user equipment selects the target resource from the communicationresource according to the characteristic information used in selectingthe target resource includes determining, by the first user equipment, adeviation value according to the characteristic information used inselecting the target resource, where the deviation value is used toindicate a deviation, in a preset pattern, of the target resourcerelative to a preset resource used to bear an RS; and determining thetarget resource according to the deviation value and the pattern, wherethe second information is used to indicate the deviation value.

To be specific, a default pattern may be stipulated. For example, thepattern shown in FIG. 2A may be selected as the default pattern, and thecharacteristic parameter S is considered as a corresponding time domainshift. For example, S=2 represents that a symbol determined after asymbol, which is in the default pattern and used to bear an RS, movesrightwards for two units is the symbol (an example of the targetresource) used to bear an RS in current D2D communication. In addition,if a numerical value of the characteristic parameter S exceeds thenumber of symbols in a subframe, a modulus operation is performed on thenumber of symbols in a subframe using the numerical value of thecharacteristic parameter S.

Therefore, the first user equipment may send the determined deviationvalue to the second user equipment, and the second user equipment maydetermine, from a preset pattern according to the deviation value, thetarget resource used to bear the RS.

c. Optionally, in this embodiment of the present disclosure, that thefirst user equipment selects the target resource from the communicationresource according to the characteristic information used in selectingthe target resource includes determining, by the first user equipment, aconfigured value according to the characteristic information used inselecting the target resource, where the configured value is used toindicate a location of the target resource in a preset pattern; anddetermining the target resource according to the configured value andthe pattern, where the second information is used to indicate theconfigured value.

To be specific, a characteristic parameter S may be used to indicate oneor more symbols in a time domain resource. For example, thecharacteristic parameter S is used to indicate a sequence number of asymbol in all symbols, so that the symbol may be determined, and thesymbol is used to bear an RS. In addition, if a numerical value of thecharacteristic parameter S exceeds the number of symbols, a modulusoperation is performed on the number of symbols using the numericalvalue of the characteristic parameter S, and the sequence number of thesymbol in all the symbols is determined according to the modulus value.

Therefore, the first user equipment may send the determined configuredvalue to the second user equipment, and the second user equipment maydetermine, from a preset pattern according to the configured value, thetarget resource used to bear the RS.

For another example, when orthogonal frequency division multiple access(OFDMA) is used as an uplink multiple-access scheme, as shown in FIG.3A, it is allowed that two ports (space domain resource) use one RE,where a same sequence is used, and different orthogonal cover codes(OCC) are used for differentiation; and sequences of different cells areorthogonal. One sequence is used on a symbol, and the sequence itselfmay allow 12 cyclic shifts (CS). Therefore, a pattern with two or fourports may be directly used (as shown in FIG. 3A). In this case, a userequipment or a base station may select, from a D2D target resourceaccording to characteristic information (or a characteristic parameter)of a user equipment, a resource used to bear an RS, where the resourceincludes a time domain resource (symbol), a frequency domain resource(subcarrier), and the like.

In addition, in this embodiment of the present disclosure, consideringthat a communication distance is relatively short in D2D communication,and relatively speaking, a channel change is not too radical; as aresult, a relatively small number of REs may be used to bear an RS (asshown in FIG. 3B or FIG. 3C). Therefore, multiple subsets may beextracted from the pattern with two ports or four ports, and thendifferent UE pairs are made to use different subsets. In this case, auser equipment or a base station may select, from the D2D targetresource according to characteristic information (or a characteristicparameter) of a user equipment, a resource used to bear an RS, where theresource includes a time domain resource (symbol), a frequency domainresource (subcarrier), a space domain resource (port), and the like.

d. Multiple patterns may be set in advance, where the pattern indicatesa symbol (an example of a first target resource) that is in a subframeand carries an RS and/or a subcarrier (an example of a second targetresource). For example, FIG. 3B shows a pattern, and FIG. 3C shows apattern. In addition, a pattern to be used is determined according to acharacteristic parameter S. For example, the pattern to be used may bedetermined by performing a modulus operation on a total number ofpatterns using the characteristic parameter S, and if multiple symbols(an example of a target resource) are used to bear an RS, resourcescorresponding to the multiple symbols may be not fixed, that is,different symbols may be separately selected according to differentcharacteristic parameters S (for example, one symbol is selectedaccording to S₁, and another symbol is selected according to S₂).

e. One pattern may be selected as a default pattern (for example, asshown in FIG. 3A, FIG. 3B, or FIG. 3C), and a parameter S is consideredas a corresponding time domain shift/frequency domain shift/space domainshift/code domain shift, for example, S=2 represents that a symboldetermined after a symbol, which is in the default pattern and used tobear an RS, moves rightwards for two units is the symbol (an example ofa target resource) used to bear an RS in current D2D communication. Inaddition, if a numerical value of the parameter S exceeds the number ofsymbols in a subframe, a modulus operation is performed on the number ofsymbols in a subframe using the numerical value of the parameter S.Likewise, the parameter S may also be used to indicate a subcarrier(frequency domain resource), an antenna port (space domain resource), anRS sequence, an OCC, or a CS.

f. A characteristic parameter S may be used to indicate one or moresymbols in a time domain frequency, such as a sequence number of asymbol in all symbols, and the symbol is used to bear an RS. Inaddition, if a numerical value of the characteristic parameter S exceedsthe number of symbols, a modulus operation is performed on the number ofsymbols using the numerical value of the characteristic parameter S, andthe sequence number of the symbol in all the symbols is determinedaccording to the modulus value. Likewise, the parameter S may also beused to indicate a subcarrier (frequency domain resource), an antennaport (space domain resource), an RS sequence, an OCC, or a CS.

Therefore, in the method for transmitting a reference signal accordingto this embodiment of the present disclosure, an overhead of a referencesignal can be effectively reduced.

It should be understood that the foregoing listed methods for selectinga target resource (determining a mapping relationship betweencharacteristic information and a target resource) are merely forillustrative description, and the present disclosure is not limitedthereto.

It should be noted that, in this embodiment of the present disclosure,if multiple resources (such as symbols for bearing an RS) are used tobear an RS (for example, two or more symbols in a subframe are used tobear an RS), relative locations of the multiple resources may be fixed,that is, a same shift (such as a time domain shift) may be obtained bymeans of calculation according to same characteristic information. Or,relative locations of the multiple resources may be not fixed, that is,different time domain shifts may be obtained by means of calculationaccording to different characteristic parameters S, so as to selectdifferent resources (for example, one symbol is selected according toS₁, and another symbol is selected according to S₂).

In this embodiment of the present disclosure, if the target resource isat least two of the time domain resource, the frequency domain resource,the space domain resource, or the code domain resource, and the at leasttwo resources are determined according to different characteristicinformation, the first user equipment may select, from the resource forthe D2D communication, a first target resource according to thecharacteristic information of the first user equipment, or in otherwords, determine a mapping relationship between the characteristicinformation of the first user equipment and the first target resource.In addition, the first user equipment may select, according to thecharacteristic information of the second user equipment, a second targetresource from the resource for the D2D communication, or in other words,determine a mapping relationship between the characteristic informationof the second user equipment and the second target resource. It shouldbe noted herein that, in this embodiment of the present disclosure, thefirst target resource and the second target resource are differentresources, but specific types of the first target resource and thesecond target resource are not limited, that is, the first targetresource may be one or more of the time domain resource, the frequencydomain resource, the space domain resource, or the code domain resource,and the second target resource may be a resource, which is differentfrom the first target resource, in the time domain resource, thefrequency domain resource, the space domain resource, or the code domainresource.

Optionally, in this embodiment of the present disclosure, the targetresource includes at least two of the time domain resource, thefrequency domain resource, the space domain resource, or the code domainresource, where the determining, by the first user equipment, in acommunication resource, a target resource used to bear a RS includesselecting, by the first user equipment, a first target resourceaccording to the characteristic information of the first user equipmentand/or the characteristic information of the second user equipment; andselecting a second target resource according to the characteristicinformation of the first user equipment and/or the characteristicinformation of the second user equipment.

Processes herein in which the first user equipment determines andselects a first pattern according to the characteristic information ofthe first user equipment and/or the characteristic information of thesecond user equipment, and the first user equipment determines andselects a second pattern according to the characteristic information ofthe first user equipment and/or the characteristic information of thesecond user equipment are similar to processes in methods a to f; anddescriptions of the processes are omitted herein to avoid repeateddescription.

Optionally, in this embodiment of the present disclosure, a method forthe second user equipment to determine a target resource may be the sameas the method for the first user equipment to select a target resource.Therefore, in this case, the first user equipment needs to notify thesecond user equipment of whether the target resource is determinedaccording to the characteristic information of the first user equipmentor determined according to the characteristic information of the seconduser equipment, so as to ensure that the second user equipment canaccurately determine the target resource. In this embodiment of thepresent disclosure, a process in which the second user equipmentdetermines a target resource according to characteristic information issimilar to a process in which the second user equipment selects a targetresource according to characteristic information; and descriptions ofthe process are omitted herein to avoid repeated description.

Optionally, in this embodiment of the present disclosure, afterselecting the target resource, the first user equipment may furtherdirectly send information (second information, such as a sequencenumber, in a subframe, of a symbol that carries an RS, a sequence numberof a pattern, or a deviation value of the target resource), whichindicates the target resource, to the second user equipment, so that thesecond user equipment may determine the target resource according to theinformation that indicates the target resource.

Case 2

The target resource is selected from the communication resource by thesecond user equipment according to characteristic information used inselecting the target resource; and that the first user equipmentdetermines, in a communication resource for D2D communication, a targetresource used to bear an RS includes receiving, by the first userequipment, third information sent by the second user equipment, wherethe third information is used to indicate the characteristic informationused in selecting the target resource by the second user equipment, anddetermining the target resource according to the third information; orreceiving, by the first user equipment, fourth information sent by thesecond user equipment, where the fourth information is used to indicatethe target resource, and determining the target resource according tothe fourth information.

To be specific, in this embodiment of the present disclosure, when thetarget resource is only one of the time domain resource, the frequencydomain resource, the space domain resource, or the code domain resource,or when the target resource includes at least two of the time domainresource, the frequency domain resource, the space domain resource, orthe code domain resource, and the at least two resources are bothdetermined according to characteristic information of a same userequipment, the second user equipment may select, according to thecharacteristic information of the first user equipment and/or thecharacteristic information of the second user equipment, the targetresource from the resource for the D2D communication, or in other words,determine a mapping relationship between the characteristic informationand the target resource.

When the target resource includes at least two of the time domainresource, the frequency domain resource, the space domain resource, orthe code domain resource, and the at least two resources arerespectively determined according to characteristic information ofdifferent user equipments, the second user equipment may select,according to the characteristic information of the first user equipment,a first target resource from the resource for the D2D communication, orin other words, determine a mapping relationship between thecharacteristic information of the first user equipment and the firsttarget resource. In addition, the first user equipment may select,according to the characteristic information of the second userequipment, a second target resource from the resource for the D2Dcommunication, or in other words, determine a mapping relationshipbetween the characteristic information of the second user equipment andthe second target resource. It should be noted herein that, in thisembodiment of the present disclosure, the first target resource and thesecond target resource are different resources, but specific types ofthe first target resource and the second target resource are notlimited, that is, the first target resource may be one or more of thetime domain resource, the frequency domain resource, the space domainresource, or the code domain resource, and the second target resourcemay be a resource, which is different from the first target resource, inthe time domain resource, the frequency domain resource, the spacedomain resource, or the code domain resource.

In this embodiment of the present disclosure, a method and a process forthe second user equipment to select a target resource is the same as amethod and a process for the first user equipment to select a targetresource; and descriptions of the method and the process are omittedherein to avoid repeated description.

Optionally, in this embodiment of the present disclosure, a method forthe first user equipment to determine a target resource may be the sameas the method for the second user equipment to select a target resource.Therefore, in this case, the second user equipment needs to notify thefirst user equipment of whether the target resource is determinedaccording to the characteristic information of the first user equipmentor determined according to the characteristic information of the seconduser equipment, so as to ensure that the first user equipment canaccurately determine the target resource. In this embodiment of thepresent disclosure, a process in which the second user equipmentdetermines a target resource according to characteristic information issimilar to a process in which the first user equipment selects a targetresource according to characteristic information, and descriptions ofthe process are omitted herein to avoid repeated description.

Optionally, in this embodiment of the present disclosure, afterselecting the target resource, the second user equipment may furtherdirectly send information (such as a location of the target resource inthe communication resource, a selected pattern, or a deviation value ofthe target resource), which indicates the target resource, to the firstuser equipment, so that the first user equipment may determine thetarget resource according to the information that indicates the targetresource.

To be specific, multiple patterns may be set in advance, where thepattern indicates a symbol (an example of a first target resource) thatis in a subframe and carries an RS and/or a subcarrier (an example of asecond target resource); and the first user equipment determines apattern to be used according to fourth information notified of by thesecond user equipment. For example, the fourth information is 2, whichindicates that the pattern numbered 2 is used in current D2Dcommunication. Alternatively, one pattern may be selected as a defaultpattern, and the fourth information indicates a time domainshift/frequency domain shift/space domain shift/code domain shift. Forexample, the fourth information indicates that 2 represents that asymbol determined after a symbol, which is in the default pattern andused to bear an RS, moves rightwards for two units is the symbol (anexample of the target resource) used to bear an RS in current D2Dcommunication.

Alternatively, for example, the fourth information indicates one or moresymbols, such as a sequence number of a symbol in all symbols, and thesymbol is used to bear an RS.

Case 3

The target resource is selected from a communication resource by a basestation device according to characteristic information used in selectingthe target resource; and that the first user equipment determines thetarget resource includes receiving, by the first user equipment, fifthinformation sent by the base station device, where the fifth informationis used to indicate the characteristic information used in selecting thetarget resource by the base station device; and determining the targetresource according to the fifth information; or receiving, by the firstuser equipment, sixth information sent by the base station device, wherethe sixth information is used to indicate the target resource; anddetermining the target resource according to the sixth information.

Optionally, the target resource includes at least one of the time domainresource, the frequency domain resource, the space domain resource, andthe code domain resource.

To be specific, in this embodiment of the present disclosure, when thetarget resource is only one of the time domain resource, the frequencydomain resource, the space domain resource, or the code domain resource,or when the target resource includes at least two of the time domainresource, the frequency domain resource, the space domain resource, orthe code domain resource, and the at least two resources are bothdetermined according to characteristic information of a same userequipment, the base station device may select, according to thecharacteristic information of the first user equipment and/or thecharacteristic information of the second user equipment, the targetresource from the resource for the D2D communication, or in other words,determine a mapping relationship between the characteristic informationand the target resource.

Alternatively, when the target resource includes at least two of thetime domain resource, the frequency domain resource, the space domainresource, or the code domain resource, and the at least two resourcesare respectively determined according to characteristic information ofdifferent user equipments, the base station device may select, accordingto the characteristic information of the first user equipment, a firsttarget resource from the resource for the D2D communication, or in otherwords, determine a mapping relationship between the characteristicinformation of the first user equipment and the first target resource.In addition, the first user equipment may select, according to thecharacteristic information of the second user equipment, a second targetresource from the resource for the D2D communication, or in other words,determine a mapping relationship between the characteristic informationof the second user equipment and the second target resource. It shouldbe noted herein that, in this embodiment of the present disclosure, thefirst target resource and the second target resource are differentresources, but specific types of the first target resource and thesecond target resource are not limited, that is, the first targetresource may be one or more of the time domain resource, the frequencydomain resource, the space domain resource, or the code domain resource,and the second target resource may be a resource, which is differentfrom the first target resource, in the time domain resource, thefrequency domain resource, the space domain resource, or the code domainresource.

In this embodiment of the present disclosure, a method and a process forthe base station device to select a target resource is the same as amethod and a process for the first user equipment to select a targetresource; and descriptions of the method and the process are omittedherein to avoid repeated description.

Optionally, in this embodiment of the present disclosure, a method forthe first user equipment to determine a target resource is the same asthe method for the base station device to select a target resource.Therefore, in this case, the base station device needs to notify thefirst user equipment of whether the target resource is determinedaccording to the characteristic information of the first user equipmentor determined according to the characteristic information of the seconduser equipment, so as to ensure that the first user equipment canaccurately determine the target resource. In this embodiment of thepresent disclosure, a process in which the second user equipmentdetermines a target resource according to characteristic information issimilar to a process in which the first user equipment selects a targetresource according to characteristic information; and descriptions ofthe process are omitted herein to avoid repeated description.

Optionally, in this embodiment of the present disclosure, afterselecting the target resource, the base station device may furtherdirectly send information (such as a location of the target resource inthe communication resource, a selected pattern, or a deviation value ofthe target resource), which indicates the target resource, to the firstuser equipment, so that the first user equipment may determine thetarget resource according to the information that indicates the targetresource.

To be specific, multiple patterns may be set in advance, where thepattern indicates a symbol (an example of a first target resource) thatis in a subframe and carries an RS and/or a subcarrier (an example of asecond target resource); and the first user equipment determines apattern to be used according to fourth information notified of by thesecond user equipment. For example, the fourth information is 2, whichindicates that the pattern numbered 2 is used in current D2Dcommunication.

Alternatively, one pattern may be selected as a default pattern, and thefourth information indicates a time domain shift/frequency domainshift/space domain shift/code domain shift. For example, the fourthinformation indicates that 2 represents that a symbol determined after asymbol, which is in the default pattern and used to bear an RS, movesrightwards for two units is the symbol (an example of the targetresource) used to bear an RS in current D2D communication.

Alternatively, for example, the fourth information indicates one or moresymbols, such as a sequence number of a symbol in all symbols, and thesymbol is used to bear an RS.

In the method for transmitting a reference signal according to thisembodiment of the present disclosure, a target resource used to bear areference signal is determined according to characteristic informationof a user equipment that performs D2D communication, which can implementdynamic configuration of a resource, so that transmission of a referencesignal between each terminal pair can still be ensured even in a case inwhich the number of terminal pairs that perform D2D communication isrelatively large.

FIG. 4 shows a schematic flowchart of a method 200, which is describedfrom a perspective of a base station device, for transmitting areference signal in D2D communication according to an embodiment of thepresent disclosure. As shown in FIG. 4, the method 200 includes thefollowing steps.

S210. Acquire characteristic information used in selecting a targetresource, where the characteristic information used in selecting thetarget resource includes at least one of the following two items,characteristic information used to uniquely identify the first userequipment, and characteristic information used to uniquely identify asecond user equipment that performs D2D communication with the firstuser equipment.

S220. Select, from a communication resource for the D2D communicationaccording to the characteristic information used in selecting the targetresource, the target resource used to bear a RS.

S230. Send fifth information to at least one user equipment of the firstuser equipment and the second user equipment, where the fifthinformation is used to indicate the characteristic information used inselecting the target resource, so that the at least one user equipmentdetermines, according to the fifth information, the target resource usedto bear the RS; or send sixth indication information to the at least oneuser equipment, where the sixth information is used to indicate thetarget resource, so that the at least one user equipment determines,according to the sixth information, the target resource used to bear theRS.

To be specific, the base station device may acquire characteristicinformation of a user equipment that performs D2D communication. Itshould be noted that, when the characteristic information is a numericalvalue, the characteristic information may be directly used to determinethe target resource, such as a sequence number of a pattern, used tobear the RS (which is referred to as the target resource for short inthe following). When the characteristic information is expressed inanother manner, a characteristic parameter (denoted by S) correspondingto the characteristic information may be further determined according toa preset algorithm (a function, a formula, or the like), for example,the characteristic parameter S may be determined using any formula ofthe foregoing formulas 1 to 3. In this embodiment of the presentdisclosure, a mapping relationship between the characteristicinformation and the characteristic parameter may be linear, or may benonlinear, which is not specifically limited in the present disclosure.Therefore, the characteristic parameter may be used to replace thecharacteristic information for calculation in the foregoing process. Inthis embodiment of the present disclosure, the characteristic parameterS may uniquely correspond to one user equipment or a pair of userequipments. Description of a same or similar case is omitted in thefollowing. For ease of description, in the following descriptions, thecharacteristic parameter S is considered as a basis for selecting (ordetermining) a target resource.

Optionally, in this embodiment of the present disclosure, a basis usedin determining a target resource used to bear an RS may be stipulated.As an example but rather than limitation, it may be stipulated that auser equipment determines, according to characteristic information (or adetermined characteristic parameter corresponding to the characteristicinformation) of an initiating end and (or a receiving end) of D2Dcommunication, the target resource from the resource (including a timedomain resource, a frequency domain resource, a space domain resource,or a code domain resource) for D2D communication. Or, it may bestipulated that a user equipment determines, from the resource(including the time domain resource, the frequency domain resource, thespace domain resource, or the code domain resource) for D2Dcommunication according to characteristic information of an initiatingend of D2D communication, the first target resource, such as the timedomain resource, used to bear a reference signal; and it is stipulatedthat the user equipment determines, from the resource (including thetime domain resource, the frequency domain resource, the space domainresource, or the code domain resource) for D2D communication accordingto the characteristic information of the initiating end of D2Dcommunication, the second target resource, such as the frequency domainresource, used to bear a reference signal. In this way, the base stationdevice may determine, according to the foregoing stipulation, a targetresource using the basis corresponding to the stipulation.

A resource used to bear a reference signal is determined according tocharacteristic information of a user equipment, so that the resourceused to bear the reference signal is not limited to a fixed confinedrange, so that transmission of a reference signal between each terminalpair can still be ensured even in a case in which the number of terminalpairs that perform D2D communication is relatively large.

It should be understood that, the foregoing listed method fordetermining the target resource, and the parameters used in the methodare merely for illustrative description, and the present disclosure isnot limited thereto. Description of a same or similar case is omitted inthe following.

In this embodiment of the present disclosure, when the target resourceis only one of the time domain resource, the frequency domain resource,the space domain resource, or the code domain resource, or when thetarget resource include at least two of the time domain resource, thefrequency domain resource, the space domain resource, or the code domainresource, and the at least two resources are both based on samecharacteristic information (such as characteristic information of a sameuser equipment or characteristic information of the two userequipments), that the base station device determines the target resourceused to bear the RS includes selecting, by the base station device, thetarget resource according to the characteristic information of the firstuser equipment and/or the characteristic information of the second userequipment.

The target resource includes at least one of the time domain resource,the frequency domain resource, the space domain resource, or the codedomain resource for D2D communication.

To be specific, in this embodiment of the present disclosure, when thetarget resource is only one of the time domain resource, the frequencydomain resource, the space domain resource, or the code domain resource,or when the target resource includes at least two of the time domainresource, the frequency domain resource, the space domain resource, orthe code domain resource, and the at least two resources are bothdetermined according to same characteristic information, the basestation device may select, according to the characteristic informationof the first user equipment and/or the characteristic information of thesecond user equipment, the target resource from the resource for the D2Dcommunication, or in other words, determine a mapping relationshipbetween the characteristic information and the target resource.

For example, when SC-FDMA is used as an uplink multiple-access scheme,in order to maintain a single-carrier characteristic, all subcarriers(frequency domain resources) in a symbol can bear only a referencesignal or data. In this way, the reference signal needs to occupy atleast one symbol, which cannot be refined to a level of a RE. Therefore,in this case, selection of a frequency domain resource may not beconsidered. For example, a target resource where a subframe has only onesymbol may be designed, as shown in FIG. 2B; all modulation is based onan extrapolation method, or an interpolation method may also beconsidered when there is an RS that can be borrowed in a neighboringsubframe. Or, a target resource where a subframe has two symbols may bedesigned may be designed, as shown in FIG. 2C. When a channel is in apoor condition, more than two symbols may be used to send an RS, whichis not specifically limited in the present disclosure. In thisembodiment of the present disclosure, no matter one symbol, two symbols,or more symbols are used to send an RS, a resource (including the timedomain resource, the frequency domain resource, the space domainresource, or the code domain resource) that sends the RS is not fixed,and a user equipment or a base station may select, from a D2D targetresource according to characteristic information of the user equipment,a resource used to bear the RS.

g. Optionally, in this embodiment of the present disclosure, theselecting, from the communication resource for the D2D communicationaccording to the characteristic information used in selecting the targetresource, the target resource used to bear an RS includes selecting atarget pattern from at least two preset patterns according to thecharacteristic information used in selecting the target resource, whereeach pattern is used to indicate a resource that is in the communicationresource and used to bear an RS; and using a resource indicated by thetarget pattern and used to bear an RS as the target resource, where thesixth information is used to indicate the target pattern.

To be specific, multiple (such as eight) patterns may be set in advance,where the pattern indicates one or more symbols (an example of thetarget resource) used to bear an RS (such as a demodulation referencesignal), in a subframe (a resource for D2D communication). FIG. 2A showsa pattern, FIG. 2B shows another pattern, and FIG. 2C shows stillanother pattern. The base station device may determine, according tocharacteristic information of a user equipment (the characteristicinformation of the first user equipment, or the characteristicinformation of the second user equipment, or the characteristicinformation of the first user equipment and the characteristicinformation of the second user equipment), a pattern used in current D2Dcommunication. For example, a modulus operation may be performed on thetotal number of preset patterns using the characteristic information, todetermine a digit (which, for example, may be represented using threebits), and the digit may be used to indicate a sequence number of thepattern, which is used in the current D2D communication, in the presetmultiple (such as eight) patterns, so that the pattern used in thecurrent D2D communication can be determined.

It should be noted herein that, when the characteristic information is anumerical value, the characteristic information may be directly used todetermine a target resource (such as a sequence number of a pattern);when the characteristic information is expressed in another manner (suchas a letter), an characteristic parameter (denoted by S) correspondingto the characteristic information may be further determined using apreset algorithm (a function, a formula, or the like), for example, anyformula of the foregoing formulas 1 to 3 may be used to determine thecharacteristic parameter S. In this embodiment of the presentdisclosure, a mapping relationship between the characteristicinformation and the characteristic parameter may be linear, or may benonlinear, which is not specifically limited in the present disclosure.Therefore, the characteristic parameter may be used to replace thecharacteristic information for calculation in the foregoing process. Inthis embodiment of the present disclosure, the characteristic parameterS may uniquely correspond to one user equipment or a pair of userequipments.

h. The selecting, from a communication resource for the D2Dcommunication according to the characteristic information used inselecting the target resource, the target resource used to bear a RSincludes determining a deviation value according to the characteristicinformation used in selecting the target resource, where the deviationvalue is used to indicate a deviation, in a preset pattern, of thetarget resource relative to a preset resource used to bear an RS; anddetermining the target resource according to the deviation value and thepattern, where the sixth information is used to indicate the deviationvalue.

To be specific, a default pattern may be stipulated. For example, thepattern shown in FIG. 2A may be selected as the default pattern, and thecharacteristic parameter S is considered as a corresponding time domainshift. For example, S=2 represents that a symbol determined after asymbol, which is in the default pattern and used to bear an RS, movesrightwards for two units is the symbol (an example of the targetresource) used to bear an RS in current D2D communication. In addition,if a numerical value of the characteristic parameter S exceeds thenumber of symbols in a subframe, a modulus operation is performed on thenumber of symbols in a subframe using the numerical value of thecharacteristic parameter S.

i. Optionally, in this embodiment of the present disclosure, theselecting, from the communication resource for the D2D communicationaccording to the characteristic information used in selecting the targetresource, the target resource used to bear an RS includes determining aconfigured value according to the characteristic information used inselecting the target resource, where the configured value is used toindicate a location of the target resource in a preset pattern; anddetermining the target resource according to the configured value andthe pattern, where the sixth information is used to indicate theconfigured value.

To be specific, a characteristic parameter S may be used to indicate oneor more symbols in a time domain resource. For example, thecharacteristic parameter S is used to indicate a sequence number of asymbol in all symbols, so that the symbol may be determined, and thesymbol is used to bear an RS. In addition, if a numerical value of thecharacteristic parameter S exceeds the number of symbols, a modulusoperation is performed on the number of symbols using the numericalvalue of the characteristic parameter S, and the sequence number of thesymbol in all the symbols is determined according to the modulus value.

For another example, when OFDMA is used as an uplink multiple-accessscheme, as shown in FIG. 3A, it is allowed that two ports (space domainresource) use one RE, where a same sequence is used, and different OCCsare for differentiation; and sequences of different cells areorthogonal. One sequence is used on a symbol, and the sequence itselfmay allow 12 CS. Therefore, a pattern with two or four ports may bedirectly used (as shown in FIG. 3A). In this case, a user equipment or abase station may select, from a D2D target resource according tocharacteristic information (or a characteristic parameter) of a userequipment, a resource used to bear an RS.

In addition, in this embodiment of the present disclosure, consideringthat a communication distance is relatively short in D2D communication,and relatively speaking, a channel change is not too radical; as aresult, a relatively small number of REs may be used to bear an RS (asshown in FIG. 3B or FIG. 3C). Therefore, multiple subsets may beextracted from the pattern with two ports or four ports, and thendifferent UE pairs are made to use different subsets. In this case, auser equipment or a base station may select, from a D2D target resourceaccording to characteristic information (or a characteristic parameter)of a user equipment, a resource used to bear an RS.

j. Multiple patterns may be set in advance, where the pattern indicatesa symbol (an example of a first target resource) that is in a subframeand carries an RS and/or a subcarrier (an example of a second targetresource). For example, FIG. 3B is a pattern, and FIG. 3C is a pattern.In addition, a pattern to be used is determined according to acharacteristic parameter S. For example, the pattern to be used may bedetermined by performing a modulus operation on a total number ofpatterns using the characteristic parameter S, and if multiple symbols(an example of a target resource) are used to bear an RS, resourcescorresponding to the multiple symbols may be not fixed, that is,different symbols may be separately selected according to differentcharacteristic parameters S (for example, one symbol is selectedaccording to S₁, and another symbol is selected according to S₂).

k. One pattern may be selected as a default pattern (for example, asshown in FIG. 3A, FIG. 3B, or FIG. 3C), and a parameter S is consideredas a corresponding time domain shift/frequency domain shift/space domainshift/code domain shift, for example, S=2 represents that a symboldetermined after a symbol, which is in the default pattern and used tobear an RS, moves rightwards for two units is the symbol (an example ofa target resource) used to bear an RS in current D2D communication. Inaddition, if a numerical value of the parameter S exceeds the number ofsymbols in a subframe, a modulus operation is performed on the number ofsymbols in a subframe using the numerical value of the parameter S.Likewise, the parameter S may also be used to indicate a subcarrier(frequency domain resource), an antenna port (space domain resource), anRS sequence, an OCC, or a CS.

l. A characteristic parameter S may be used to indicate one or moresymbols in a time domain frequency, such as a sequence number of asymbol in all symbols, and the symbol is used to bear an RS. Inaddition, if a numerical value of the characteristic parameter S exceedsthe number of symbols, a modulus operation is performed on the number ofsymbols using the numerical value of the characteristic parameter S, andthe sequence number of the symbol in all the symbols is determinedaccording to the modulus value. Likewise, the parameter S may also beused to indicate a subcarrier (frequency domain resource), an antennaport (space domain resource), an RS sequence, an OCC, or a CS.

Therefore, in the method for transmitting a reference signal accordingto this embodiment of the present disclosure, an overhead of a referencesignal can be effectively reduced.

It should be understood that the foregoing listed methods for selectinga target resource (determining a mapping relationship betweencharacteristic information and a target resource) are merely forillustrative description, and the present disclosure is not limitedthereto.

It should be noted that, in this embodiment of the present disclosure,if multiple resources (such as symbols for bearing an RS) are used tobear an RS (for example, two or more symbols in a subframe are used tobear an RS), relative locations of the multiple resources may be fixed,that is, a same shift (such as a time domain shift) may be obtained bymeans of calculation according to same characteristic information. Or,relative locations of the multiple resources may be not fixed, that is,different time domain shifts may be obtained by means of calculationaccording to different characteristic parameters S, so as to selectdifferent resources (for example, one symbol is selected according toS₁, and another symbol is selected according to S₂).

In this embodiment of the present disclosure, if the target resource isat least two of the following, the time domain resource, the frequencydomain resource, the space domain resource, or the code domain resource;and the selecting, from the communication resource for D2D communicationaccording to the characteristic information of the first user equipmentand/or the characteristic information of the second user equipment, thenthe target resource used to bear an RS includes selecting a first targetresource according to the characteristic information of the first userequipment and/or the characteristic information of the second userequipment; and selecting the second target resource according to thecharacteristic information of the first user equipment and/or thecharacteristic information of the second user equipment.

The target resource includes at least two of the time domain resource,the frequency domain resource, the space domain resource, or the codedomain resource for D2D communication.

To be specific, in this embodiment of the present disclosure, when thetarget resource includes at least two of the time domain resource, thefrequency domain resource, the space domain resource, or the code domainresource, and the at least two resources are respectively determinedaccording to characteristic information of different user equipments,the base station device may select the first target resource from theresource for the D2D communication according to the characteristicinformation of the first user equipment, or in other words, determine amapping relationship between the characteristic information of the firstuser equipment and the first target resource. In addition, the basestation device may select, according to the characteristic informationof the second user equipment, a second target resource from the resourcefor the D2D communication, or in other words, determine a mappingrelationship between the characteristic information of the second userequipment and the second target resource. It should be noted hereinthat, in this embodiment of the present disclosure, the first targetresource and the second target resource are different resources, butspecific types of the first target resource and the second targetresource are not limited, that is, the first target resource may be oneor more of the time domain resource, the frequency domain resource, thespace domain resource, or the code domain resource, and the secondtarget resource may be a resource, which is different from the firsttarget resource, in the time domain resource, the frequency domainresource, the space domain resource, or the code domain resource.

Processes herein in which the base station device determines and selectsa first pattern according to the characteristic information of the firstuser equipment and/or the characteristic information of the second userequipment, and the base station device determines and selects a secondpattern according to the characteristic information of the first userequipment and/or the characteristic information of the second userequipment are similar to processes in methods g to l; and descriptionsof the processes are omitted herein to avoid repeated description.

Optionally, in this embodiment of the present disclosure, a method for auser equipment to determine a target resource is the same as the methodfor the base station device to select a target resource. Therefore, inthis case, the base station device needs to notify the first userequipment of whether the target resource is determined according to thecharacteristic information of the first user equipment or determinedaccording to the characteristic information of the second userequipment, so as to ensure that the user equipment can accuratelydetermine the target resource. In this embodiment of the presentdisclosure, a process in which a user equipment determines a targetresource according to characteristic information is similar to a processin which the base station device selects a target resource according tocharacteristic information; and descriptions of the process are omittedherein to avoid repeated description.

Optionally, in this embodiment of the present disclosure, afterselecting the target resource, the base station device may furtherdirectly send information (such as a sequence number, in a subframe, ofa symbol that carries an RS), which indicates the target resource, to auser equipment, so that the user equipment may determine the targetresource according to the information that indicates the targetresource.

In the method for transmitting a reference signal according to thisembodiment of the present disclosure, a target resource used to bear areference signal is determined according to characteristic informationof a user equipment that performs D2D communication, which can implementdynamic configuration of a resource, so that transmission of a referencesignal between each terminal pair can still be ensured even in a case inwhich the number of terminal pairs that perform D2D communication isrelatively large.

The foregoing describes in detail, with reference to FIG. 1 to FIG. 4,the method for transmitting a reference signal according to theembodiments of the present disclosure; and the following describes indetail, with reference to FIG. 5 and FIG. 6, an apparatus fortransmitting a reference signal according to an embodiment of thepresent disclosure.

FIG. 5 shows a schematic block diagram of an apparatus 300 fortransmitting a reference signal in D2D communication according to anembodiment of the present disclosure. As shown in FIG. 5, the apparatus300 includes a processing unit 310 configured to enable a first userequipment to determine, from a communication resource for D2Dcommunication, a target resource used to bear a RS, and control areceiving unit 320 and a sending unit 330 to transmit the RS using thetarget resource, where the target resource is according tocharacteristic information used in selecting the target resource, andthe characteristic information used in selecting the target resourceincludes at least one of the following two items, characteristicinformation used to uniquely identify the first user equipment, andcharacteristic information used to uniquely identify a second userequipment that performs D2D communication with the first user equipment;the receiving unit 320 configured to receive the RS; and the sendingunit 330 configured to send the RS.

In this embodiment of the present disclosure, a basis used indetermining a target resource used to bear an RS may be stipulated inadvance. As an example rather than limitation, it may be stipulated thata user equipment determines, according to characteristic information ofan initiating end and or a receiving end of D2D communication, thetarget resource from a resource (including a time domain resource, afrequency domain resource, a space domain resource, or a code domainresource) for D2D communication. Or, it may be stipulated that a userequipment determines, from the resource (including the time domainresource, the frequency domain resource, the space domain resource, orthe code domain resource) for D2D communication according tocharacteristic information of an initiating end and/or a receiving endof D2D communication, the first target resource, such as the time domainresource, used to bear a reference signal; and it is stipulated that theuser equipment determines, from the resource (including the time domainresource, the frequency domain resource, the space domain resource, orthe code domain resource) for D2D communication according to thecharacteristic information of the initiating end and/or the receivingend of D2D communication, the second target resource, such as thefrequency domain resource, used to bear a reference signal. In this way,the processing unit 310 may determine a target resource according to abasis corresponding to the stipulation. It should be understood that theforegoing listed basis (characteristic information of an initiating endand/or a receiving end) for determining a first resource and basis(characteristic information of the initiating end and/or the receivingend) for determining a second resource may be the same, or may bedifferent (for example, the first resource may be determined accordingto the characteristic information of the initiating end, and the secondresource may be determined according to the characteristic informationof the receiving end), which is not specifically limited in the presentdisclosure.

It should be noted that, the characteristic information is information(which may be, for example, a user identity of a user equipment, or atemporary identity of the user equipment in a communications system)that uniquely indicates the user equipment in the communications system,and the characteristic information can be obtained by a peer userequipment (for example, a user equipment may acquire characteristicinformation of a peer device during establishment of D2D communication).Description of a same or similar case is omitted in the following.

A resource used to bear a reference signal is determined according tocharacteristic information of a user equipment, so that the resourceused to bear the reference signal is not limited to a fixed confinedrange, so that transmission of a reference signal between each terminalpair can still be ensured even in a case in which the number of terminalpairs that perform D2D communication is relatively large.

It should be understood that, the foregoing listed method fordetermining the target resource, and the parameters used in the methodare merely for illustrative description, and the present disclosure isnot limited thereto. Description of a same or similar case is omitted inthe following.

In this embodiment of the present disclosure, the processing unit 310 ofthe first user equipment may independently select the target resourcefrom the resource (including the time domain resource, the frequencydomain resource, the space domain resource, or the code domain resource)for D2D communication, and this corresponds to case 4. Or, the seconduser equipment may independently select the target resource from theresource (including the time domain resource, the frequency domainresource, the space domain resource, or the code domain resource) forD2D communication, so that the first user equipment may determine thetarget resource according to notification from the second userequipment, and this corresponds to case 5. Or, a base station device mayindependently select the target resource from the resource (includingthe time domain resource, the frequency domain resource, the spacedomain resource, or the code domain resource) for D2D communication, sothat the first user equipment and the second user equipment maydetermine the target resource according to notification from the basestation device, and this corresponds to case 6. The following separatelydescribes the foregoing listed three cases.

Case 4

The processing unit 310 is configured to select the target resource fromthe communication resource according to the characteristic informationused in selecting the target resource; and the sending unit 330 isfurther configured to send first information to the second userequipment, where the first information is used to indicate thecharacteristic information used in selecting the target resource by thefirst user equipment, so that the second user equipment determines thetarget resource according to the first information; or configured tosend second information to the second user equipment, where the secondinformation is used to indicate the target resource, so that the seconduser equipment determines the target resource according to the secondinformation.

To be specific, in this embodiment of the present disclosure, when thetarget resource is only one of the time domain resource, the frequencydomain resource, the space domain resource, or the code domain resource,or when the target resource includes at least two of the time domainresource, the frequency domain resource, the space domain resource, orthe code domain resource, and the at least two resources are both basedon same characteristic information (such as characteristic informationof a same user equipment or characteristic information of the two userequipments), the processing unit 310 of the first user equipment mayselect, according to the characteristic information of the first userequipment and/or the characteristic information of the second userequipment, the target resource from the resource for the D2Dcommunication, or in other words, determine a mapping relationshipbetween the characteristic information and the target resource.

For example, when SC-FDMA is used as an uplink multiple-access scheme,in order to maintain a single-carrier characteristic, all subcarriers(frequency domain resources) in a symbol can bear only a referencesignal or data. In this way, the reference signal needs to occupy atleast one symbol, which cannot be refined to a level of a RE. Therefore,in this case, selection of a frequency domain resource may not beconsidered. For example, a target resource where a subframe has only onesymbol may be designed, as shown in FIG. 2B; all modulation is based onan extrapolation method, or an interpolation method may also beconsidered when there is an RS that can be borrowed in a neighboringsubframe. Or, a target resource where a subframe has two symbols may bedesigned may be designed, as shown in FIG. 2C. When a channel is in apoor condition, more than two symbols may be used to send an RS, whichis not specifically limited in the present disclosure. In thisembodiment of the present disclosure, no matter one symbol, two symbols,or more symbols are used to send an RS, a resource (including the timedomain resource, the frequency domain resource, the space domainresource, or the code domain resource) that sends the RS is not fixed,and a user equipment or a base station may select, from a D2D targetresource according to characteristic information of the user equipment,a resource used to bear the RS.

a. Optionally, in this embodiment of the present disclosure, theprocessing unit 310 is configured to select a target pattern from atleast two preset patterns according to the characteristic informationused in selecting the target resource, where each pattern is used toindicate a resource that is in the communication resource and used tobear an RS; and configured to use a resource indicated by the targetpattern and used to bear an RS as the target resource, where the secondinformation is used to indicate the target pattern.

To be specific, multiple (such as eight) patterns may be set in advance,where the pattern indicates one or more symbols (an example of thetarget resource) used to bear an RS (such as a demodulation referencesignal), in a subframe (a resource for D2D communication). FIG. 2A showsa pattern, FIG. 2B shows another pattern, and FIG. 2C shows stillanother pattern. The first user equipment may determine, according tocharacteristic information of a user equipment (the characteristicinformation of the first user equipment, or the characteristicinformation of the second user equipment, or the characteristicinformation of the first user equipment and the characteristicinformation of the second user equipment), a pattern used in current D2Dcommunication. For example, a modulus operation may be performed on thetotal number of preset patterns using the characteristic information, todetermine a digit (which, for example, may be represented using threebits), and the digit may be used to indicate a sequence number of thepattern, which is used in the current D2D communication, in the presetmultiple (such as eight) patterns, so that the pattern used in thecurrent D2D communication can be determined.

It should be noted herein that, when the characteristic information is anumerical value, the characteristic information may be directly used todetermine a target resource (such as a sequence number of a pattern);when the characteristic information is expressed in another manner (suchas, a letter), an characteristic parameter (denoted by S) correspondingto the characteristic information may be further determined using apreset algorithm (a function, a formula, or the like), for example, anyformula of the foregoing formulas 1 to 3 may be used to determine thecharacteristic parameter S. Therefore, the characteristic parameter maybe used to replace the characteristic information for calculation in theforegoing process. In this embodiment of the present disclosure, thecharacteristic parameter S may uniquely correspond to one user equipmentor a pair of user equipments. Description of a same or similar case isomitted in the following. For ease of description, in the followingdescriptions, the characteristic parameter S is considered as a basisfor selecting (or determining) a target resource.

b. Optionally, the processing unit 310 is configured to determine adeviation value according to the characteristic information used inselecting the target resource, where the deviation value is used toindicate a deviation, in a preset pattern, of the target resourcerelative to a preset resource used to bear an RS; and configured todetermine the target resource according to the deviation value and thepattern, where the second information is used to indicate the deviationvalue.

To be specific, a default pattern may be stipulated. For example, thepattern shown in FIG. 2A may be selected as the default pattern, and thecharacteristic parameter S is considered as a corresponding time domainshift. For example, S=2 represents that a symbol determined after asymbol, which is in the default pattern and used to bear an RS, movesrightwards for two units is the symbol (an example of the targetresource) used to bear an RS in current D2D communication. In addition,if a numerical value of the characteristic parameter S exceeds thenumber of symbols in a subframe, a modulus operation is performed on thenumber of symbols in a subframe using the numerical value of thecharacteristic parameter S.

c. Optionally, in this embodiment of the present disclosure, theprocessing unit 310 is configured to determine a configured valueaccording to the characteristic information used in selecting the targetresource, where the configured value is used to indicate a location ofthe target resource in a preset pattern; and determine the targetresource according to the configured value and the pattern, where thesecond information is used to indicate the configured value.

To be specific, a characteristic parameter S may be used to indicate oneor more symbols in a time domain resource. For example, thecharacteristic parameter S is used to indicate a sequence number of asymbol in all symbols, so that the symbol may be determined, and thesymbol is used to bear an RS. In addition, if a numerical value of thecharacteristic parameter S exceeds the number of symbols, a modulusoperation is performed on the number of symbols using the numericalvalue of the characteristic parameter S, and the sequence number of thesymbol in all the symbols is determined according to the modulus value.

For another example, when OFDMA is used as an uplink multiple-accessscheme, as shown in FIG. 3A, it is allowed that two ports (space domainresource) use one RE, where a same sequence is used, and different OCCsare used for differentiation; and sequences of different cells areorthogonal. One sequence is used on a symbol, and the sequence itselfmay allow 12 CS. Therefore, a pattern with two or four ports may bedirectly used (as shown in FIG. 3A). In this case, a user equipment or abase station may select, from a D2D target resource according tocharacteristic information (or a characteristic parameter) of a userequipment, a resource used to bear an RS.

In addition, in this embodiment of the present disclosure, consideringthat a communication distance is relatively short in D2D communication,and relatively speaking, a channel change is not too radical; as aresult, a relatively small number of REs may be used to bear an RS (asshown in FIG. 3B or FIG. 3C). Therefore, multiple subsets may beextracted from the pattern with two ports or four ports, and thendifferent UE pairs are made to use different subsets. In this case, auser equipment or a base station may select, from a D2D target resourceaccording to characteristic information (or a characteristic parameter)of a user equipment, a resource used to bear an RS.

d. Multiple patterns may be set in advance, where the pattern indicatesa symbol (an example of a first target resource) that is in a subframeand carries an RS and/or a subcarrier (an example of a second targetresource). For example, FIG. 3B is a pattern, and FIG. 3C is a pattern.In addition, a pattern to be used is determined according to acharacteristic parameter S. For example, the pattern to be used may bedetermined by performing a modulus operation on a total number ofpatterns using the characteristic parameter S, and if multiple symbols(an example of a target resource) are used to bear an RS, resourcescorresponding to the multiple symbols may be not fixed, that is,different symbols may be separately selected according to differentcharacteristic parameters S (for example, one symbol is selectedaccording to S₁, and another symbol is selected according to S₂).

e. One pattern may be selected as a default pattern (for example, asshown in FIG. 3A, FIG. 3B, or FIG. 3C), and a parameter S is consideredas a corresponding time domain shift/frequency domain shift/space domainshift/code domain shift, for example, S=2 represents that a symboldetermined after a symbol, which is in the default pattern and used tobear an RS, moves rightwards for two units is the symbol (an example ofa target resource) used to bear an RS in current D2D communication. Inaddition, if a numerical value of the parameter S exceeds the number ofsymbols in a subframe, a modulus operation is performed on the number ofsymbols in a subframe using the numerical value of the parameter S.Likewise, the parameter S may also be used to indicate a subcarrier(frequency domain resource), an antenna port (space domain resource), anRS sequence, an OCC, or a CS.

f. A characteristic parameter S may be used to indicate one or moresymbols, such as a sequence number of a symbol in all symbols, in a timedomain frequency; and the symbol is used to bear an RS. In addition, ifa numerical value of the characteristic parameter S exceeds the numberof symbols, a modulus operation is performed on the number of symbolsusing the numerical value of the characteristic parameter S, and thesequence number of the symbol in all the symbols is determined accordingto the modulus value. Likewise, the parameter S may also be used toindicate a subcarrier (frequency domain resource), an antenna port(space domain resource), an RS sequence, an OCC, or a CS.

Therefore, in the apparatus for transmitting a reference signalaccording to this embodiment of the present disclosure, an overhead of areference signal can be effectively reduced.

It should be understood that the foregoing listed methods for selectinga target resource (determining a mapping relationship betweencharacteristic information and a target resource) are merely forillustrative description, and the present disclosure is not limitedthereto.

It should be noted that, in this embodiment of the present disclosure,if multiple resources (such as symbols for bearing an RS) are used tobear an RS (for example, two or more symbols in a subframe are used tobear an RS), relative locations of the multiple resources may be fixed,that is, a same shift (such as a time domain shift) may be obtained bymeans of calculation according to same characteristic information. Or,relative locations of the multiple resources may be not fixed, that is,different time domain shifts may be obtained by means of calculationaccording to different characteristic parameters S, so as to selectdifferent resources (for example, one symbol is selected according toS₁, and another symbol is selected according to S₂).

In this embodiment of the present disclosure, the target resourceincludes at least two of the time domain resource, the frequency domainresource, the space domain resource, or the code domain resource, wherethe processing unit 310 is configured to select a first target resourceaccording to the characteristic information of the first user equipmentand/or the characteristic information of the second user equipment; andconfigured to select a second target resource according to thecharacteristic information of the first user equipment and/or thecharacteristic information of the second user equipment.

To be specific, in this embodiment of the present disclosure, when thetarget resource includes at least two of the time domain resource, thefrequency domain resource, the space domain resource, or the code domainresource, and the at least two resources are respectively determinedaccording to characteristic information of different user equipments,the processing unit 310 of the first user equipment may select the firsttarget resource from the resource for the D2D communication according tothe characteristic information of the first user equipment, or in otherwords, determine a mapping relationship between the characteristicinformation of the first user equipment and the first target resource.In addition, the processing unit 310 of the first user equipment mayselect, according to the characteristic information of the second userequipment, a second target resource from the resource for the D2Dcommunication, or in other words, determine a mapping relationshipbetween the characteristic information of the second user equipment andthe second target resource. It should be noted herein that, in thisembodiment of the present disclosure, the first target resource and thesecond target resource are different resources, but specific types ofthe first target resource and the second target resource are notlimited, that is, the first target resource may be one or more of thetime domain resource, the frequency domain resource, the space domainresource, or the code domain resource, and the second target resourcemay be a resource, which is different from the first target resource, inthe time domain resource, the frequency domain resource, the spacedomain resource, or the code domain resource.

Processes herein in which the processing unit 310 of the first userequipment determines and selects a first pattern according to thecharacteristic information of the first user equipment and/or thecharacteristic information of the second user equipment, and theprocessing unit 310 of the first user equipment determines and selects asecond pattern according to the characteristic information of the firstuser equipment and/or the characteristic information of the second userequipment are similar to processes in methods a to f; and descriptionsof the processes are omitted herein to avoid repeated description.

Optionally, in this embodiment of the present disclosure, a method forthe second user equipment to determine a target resource may be the sameas the method for the first user equipment to select a target resource.Therefore, in this case, the first user equipment needs to notify thesecond user equipment of whether the target resource is determinedaccording to the characteristic information of the first user equipmentor determined according to the characteristic information of the seconduser equipment, so as to ensure that the second user equipment canaccurately determine the target resource. In this embodiment of thepresent disclosure, a process in which the second user equipmentdetermines a target resource according to characteristic information issimilar to a process in which the second user equipment selects a targetresource according to characteristic information; and descriptions ofthe process are omitted herein to avoid repeated description.

Optionally, in this embodiment of the present disclosure, afterselecting the target resource, the processing unit 310 of the first userequipment may further directly send information (such as a sequencenumber, in a subframe, of a symbol that carries an RS), which indicatesthe target resource, to the second user equipment, so that the seconduser equipment may determine the target resource according to theinformation that indicates the target resource.

Case 5

Optionally, the target resource is selected from the communicationresource by the second user equipment according to characteristicinformation used in selecting the target resource; and the receivingunit 320 is further configured to receive third information sent by thesecond user equipment, where the third information is used to indicatethe characteristic information used in selecting the target resource bythe second user equipment; and the processing unit 310 is furtherconfigured to determine the target resource according to the thirdinformation; or the receiving unit 320 is further configured to receivefourth information sent by the second user equipment, where the fourthinformation is used to indicate the target resource; and the processingunit 310 is further configured to determine the target resourceaccording to the fourth information.

To be specific, in this embodiment of the present disclosure, when thetarget resource is only one of the time domain resource, the frequencydomain resource, the space domain resource, or the code domain resource,or when the target resource includes at least two of the time domainresource, the frequency domain resource, the space domain resource, orthe code domain resource, and the at least two resources are bothdetermined according to characteristic information of a same userequipment, the second user equipment may select, according to thecharacteristic information of the first user equipment and/or thecharacteristic information of the second user equipment, the targetresource from the resource for the D2D communication, or in other words,determine a mapping relationship between the characteristic informationand the target resource.

When the target resource includes at least two of the time domainresource, the frequency domain resource, the space domain resource, orthe code domain resource, and the at least two resources arerespectively determined according to characteristic information ofdifferent user equipments, the second user equipment may select,according to the characteristic information of the first user equipment,a first target resource from the resource for the D2D communication, orin other words, determine a mapping relationship between thecharacteristic information of the first user equipment and the firsttarget resource. In addition, the second user equipment may select,according to the characteristic information of the second userequipment, a second target resource from the resource for the D2Dcommunication, or in other words, determine a mapping relationshipbetween the characteristic information of the second user equipment andthe second target resource. It should be noted herein that, in thisembodiment of the present disclosure, the first target resource and thesecond target resource are different resources, but specific types ofthe first target resource and the second target resource are notlimited, that is, the first target resource may be one or more of thetime domain resource, the frequency domain resource, the space domainresource, or the code domain resource, and the second target resourcemay be a resource, which is different from the first target resource, inthe time domain resource, the frequency domain resource, the spacedomain resource, or the code domain resource.

In this embodiment of the present disclosure, a method and a process forthe second user equipment to select a target resource is the same as amethod and a process for the first user equipment to select a targetresource; and descriptions of the method and the process are omittedherein to avoid repeated description.

Optionally, in this embodiment of the present disclosure, a method forthe first user equipment to determine a target resource may be the sameas the method for the second user equipment to select a target resource.Therefore, in this case, the second user equipment needs to notify thefirst user equipment of whether the target resource is determinedaccording to the characteristic information of the first user equipmentor determined according to the characteristic information of the seconduser equipment, so as to ensure that the first user equipment canaccurately determine the target resource. In this embodiment of thepresent disclosure, a process in which the second user equipmentdetermines a target resource according to characteristic information issimilar to a process in which the first user equipment selects a targetresource according to characteristic information; and descriptions ofthe process are omitted herein to avoid repeated description.

Optionally, in this embodiment of the present disclosure, afterselecting the target resource, the second user equipment may furtherdirectly send information (such as a sequence number, in a subframe, ofa symbol that carries an RS), which indicates the target resource, tothe first user equipment, so that the first user equipment may determinethe target resource according to the information that indicates thetarget resource.

Case 6

The target resource is selected by the base station device according tocharacteristic information used in selecting the target resource; andthe receiving unit 320 is further configured to receive fifthinformation sent by the base station device, where the fifth informationis used to indicate the characteristic information used in selecting thetarget resource by the base station device; and the processing unit 310is further configured to determine the target resource according to thefifth information; or the receiving unit 320 is further configured toreceive sixth information sent by the base station device, where thesixth information is used to indicate the target resource; and theprocessing unit 310 is further configured to determine the targetresource according to the sixth information.

To be specific, in this embodiment of the present disclosure, when thetarget resource is only one of the time domain resource, the frequencydomain resource, the space domain resource, or the code domain resource,or when the target resource includes at least two of the time domainresource, the frequency domain resource, the space domain resource, orthe code domain resource, and the at least two resources are bothdetermined according to characteristic information of a same userequipment, the base station device may select, according to thecharacteristic information of the first user equipment and/or thecharacteristic information of the second user equipment, the targetresource from the resource for the D2D communication, or in other words,determine a mapping relationship between the characteristic informationand the target resource.

When the target resource includes at least two of the time domainresource, the frequency domain resource, the space domain resource, orthe code domain resource, and the at least two resources arerespectively determined according to characteristic information ofdifferent user equipments, the base station device may select, accordingto the characteristic information of the first user equipment, a firsttarget resource from the resource for the D2D communication, or in otherwords, determine a mapping relationship between the characteristicinformation of the first user equipment and the first target resource.In addition, the base station device may select, according to thecharacteristic information of the second user equipment, a second targetresource from the resource for the D2D communication, or in other words,determine a mapping relationship between the characteristic informationof the second user equipment and the second target resource. It shouldbe noted herein that, in this embodiment of the present disclosure, thefirst target resource and the second target resource are differentresources, but specific types of the first target resource and thesecond target resource are not limited, that is, the first targetresource may be one or more of the time domain resource, the frequencydomain resource, the space domain resource, or the code domain resource,and the second target resource may be a resource, which is differentfrom the first target resource, in the time domain resource, thefrequency domain resource, the space domain resource, or the code domainresource.

In this embodiment of the present disclosure, a method and a process forthe base station device to select a target resource is the same as amethod and a process for the first user equipment to select a targetresource; and descriptions of the method and the process are omittedherein to avoid repeated description.

Optionally, in this embodiment of the present disclosure, a method forthe first user equipment to determine a target resource is the same asthe method for the base station device to select a target resource.Therefore, in this case, the base station device needs to notify thefirst user equipment of whether the target resource is determinedaccording to the characteristic information of the first user equipmentor determined according to the characteristic information of the seconduser equipment, so as to ensure that the first user equipment canaccurately determine the target resource. In this embodiment of thepresent disclosure, a process in which the second user equipmentdetermines a target resource according to characteristic information issimilar to a process in which the first user equipment selects a targetresource according to characteristic information, and descriptions ofthe process are omitted herein to avoid repeated description.

Optionally, in this embodiment of the present disclosure, afterselecting the target resource, the base station device may furtherdirectly send information (such as a sequence number, in a subframe, ofa symbol that carries an RS), which indicates the target resource, tothe first user equipment, so that the receiving unit 320 of the firstuser equipment may determine the target resource according to theinformation that indicates the target resource.

In the apparatus for transmitting a reference signal according to thisembodiment of the present disclosure, a target resource used to bear areference signal is determined according to characteristic informationof a user equipment that performs D2D communication, which can implementdynamic configuration of a resource, so that transmission of a referencesignal between each terminal pair can still be ensured even in a case inwhich the number of terminal pairs that perform D2D communication isrelatively large.

The apparatus 300 for transmitting a reference signal according to thisembodiment of the present disclosure may correspond to a user equipment(the first user equipment) in the method in this embodiment of thepresent disclosure, the foregoing other operations and/or functions ofunits and modules in the apparatus 300 for transmitting a referencesignal are separately for implementing corresponding processes in themethod 100 in FIG. 1, which, for brevity, is not described herein again.

FIG. 6 shows a schematic block diagram of an apparatus 400 fortransmitting a reference signal in D2D communication according to anembodiment of the present disclosure. As shown in FIG. 6, the apparatus400 includes an acquiring unit 410 configured to acquire characteristicinformation used in selecting a target resource, where thecharacteristic information used in selecting the target resourceincludes at least one of the following two items, characteristicinformation used to uniquely identify the first user equipment, andcharacteristic information used to uniquely identify a second userequipment that performs D2D communication with the first user equipment;a processing unit 420 configured to select, from a communicationresource for the D2D communication according to the characteristicinformation used in selecting the target resource, the target resourceused to bear a RS; and a sending unit 430 configured to send fifthinformation to at least one user equipment of the first user equipmentand the second user equipment, where the fifth information is used toindicate the characteristic information used in selecting the targetresource, so that the at least one user equipment determines, accordingto the fifth information, the target resource used to bear the RS; orsend sixth indication information to the at least one user equipment,where the sixth information is used to indicate the target resource, sothat the at least one user equipment determines, according to the sixthinformation, the target resource used to bear the RS.

To be specific, the acquiring unit 410 of a base station device mayacquire characteristic information of a user equipment that performs D2Dcommunication. It should be noted that, when the characteristicinformation is a numerical value, the characteristic information may bedirectly used to determine the target resource, such as a sequencenumber of a pattern, used to bear an RS (which is referred to as thetarget resource for short in the following). When the characteristicinformation is expressed in another manner, a characteristic parameter(denoted by S) corresponding to the characteristic information may befurther determined according to a preset algorithm (a function, aformula, or the like), for example, the characteristic parameter S maybe determined using any formula of the foregoing formulas 1 to 3. Inthis embodiment of the present disclosure, a mapping relationshipbetween the characteristic information and the characteristic parametermay be linear, or may be nonlinear, which is not specifically limited inthe present disclosure. Therefore, the characteristic parameter may beused to replace the characteristic information for calculation in theforegoing process. In this embodiment of the present disclosure, thecharacteristic parameter S may uniquely correspond to one user equipmentor a pair of user equipments. Description of a same or similar case isomitted in the following. For ease of description, in the followingdescriptions, the characteristic parameter S is considered as a basisfor selecting (or determining) a target resource.

Optionally, in this embodiment of the present disclosure, a basis usedin determining a target resource used to bear an RS may be stipulated.As an example rather than limitation, it may be stipulated that a userequipment determines, according to characteristic information (or adetermined characteristic parameter corresponding to the characteristicinformation) of an initiating end and (or a receiving end) of D2Dcommunication, the target resource from the resource (including a timedomain resource, a frequency domain resource, a space domain resource,or a code domain resource) for D2D communication. Or, it may bestipulated that a user equipment determines, from the resource(including the time domain resource, the frequency domain resource, thespace domain resource, or the code domain resource) for D2Dcommunication according to characteristic information of an initiatingend of D2D communication, a first resource, such as the time domainresource, used to bear a reference signal; and it is stipulated that theuser equipment determines, from the resource (including the time domainresource, the frequency domain resource, the space domain resource, orthe code domain resource) for D2D communication according to thecharacteristic information of the initiating end of D2D communication, asecond resource, such as the frequency domain resource, used to bear areference signal. In this way, the processing unit 420 of the basestation device may determine, according to the foregoing stipulation, atarget resource using a basis corresponding to the stipulation.

A resource used to bear a reference signal is determined according tocharacteristic information of a user equipment, so that the resourceused to bear the reference signal is not limited to a fixed confinedrange, so that transmission of a reference signal between each terminalpair can still be ensured even in a case in which the number of terminalpairs that perform D2D communication is relatively large.

It should be understood that, the foregoing listed method fordetermining the target resource, and the parameters used in the methodare merely for illustrative description, and the present disclosure isnot limited thereto. Description of a same or similar case is omitted inthe following.

In this embodiment of the present disclosure, when the target resourceis only one of the time domain resource, the frequency domain resource,the space domain resource, or the code domain resource, or when thetarget resource include at least two of the time domain resource, thefrequency domain resource, the space domain resource, or the code domainresource, and the at least two resources are both based on samecharacteristic information (such as characteristic information of a sameuser equipment or characteristic information of the two userequipments), the processing unit 410 is configured to select the targetresource according to the characteristic information of the first userequipment and/or the characteristic information of the second userequipment.

To be specific, in this embodiment of the present disclosure, when thetarget resource is only one of the time domain resource, the frequencydomain resource, the space domain resource, or the code domain resource,or when the target resource includes at least two of the time domainresource, the frequency domain resource, the space domain resource, orthe code domain resource, and the at least two resources are bothdetermined according to same characteristic information, the basestation device may select, according to the characteristic informationof the first user equipment and/or the characteristic information of thesecond user equipment, the target resource from the resource for the D2Dcommunication, or in other words, determine a mapping relationshipbetween the characteristic information and the target resource.

For example, when SC-FDMA is used as an uplink multiple-access scheme,in order to maintain a single-carrier characteristic, all subcarriers(frequency domain resources) in a symbol can bear only a referencesignal or data. In this way, the reference signal needs to occupy atleast one symbol, which cannot be refined to a level of a RE. Therefore,in this case, selection of a frequency domain resource may not beconsidered. For example, a target resource where a subframe has only onesymbol may be designed, as shown in FIG. 2B; all modulation is based onan extrapolation method, or an interpolation method may also beconsidered when there is an RS that can be borrowed in a neighboringsubframe. Or, a target resource where a subframe has two symbols may bedesigned may be designed, as shown in FIG. 2C. When a channel is in apoor condition, more than two symbols may be used to send an RS, whichis not specifically limited in the present disclosure. In thisembodiment of the present disclosure, no matter if one symbol, twosymbols, or more symbols are used to send an RS, a resource (includingthe time domain resource, the frequency domain resource, the spacedomain resource, or the code domain resource) that sends the RS is notfixed, and a user equipment or a base station may select, from a D2Dtarget resource according to characteristic information of the userequipment, a resource used to bear the RS.

g. Optionally, in this embodiment of the present disclosure, theprocessing unit 420 is configured to select a target pattern from atleast two preset patterns according to the characteristic informationused in selecting the target resource, where each pattern is used toindicate a resource that is in the communication resource and used tobear an RS; and configured to use an RS resource indicated by the targetpattern as the target resource, where the sixth information is used toindicate the target pattern.

To be specific, multiple (such as eight) patterns may be set in advance,where the pattern indicates one or more symbols (an example of thetarget resource) used to bear an RS (such as a demodulation referencesignal), in a subframe (a resource for D2D communication). FIG. 2A showsa pattern, FIG. 2B shows another pattern, and FIG. 2C shows stillanother pattern. The base station device may determine, according tocharacteristic information of a user equipment (the characteristicinformation of the first user equipment, or the characteristicinformation of the second user equipment, or the characteristicinformation of the first user equipment and the characteristicinformation of the second user equipment), a pattern used in current D2Dcommunication. For example, a modulus operation may be performed on thetotal number of preset patterns using the characteristic information, todetermine a digit (which, for example, may be represented using threebits), and the digit may be used to indicate a sequence number of thepattern, which is used in the current D2D communication, in the presetmultiple (such as eight) patterns, so that the pattern used in thecurrent D2D communication can be determined.

It should be noted herein that, when the characteristic information is anumerical value, the characteristic information may be directly used todetermine a target resource (such as a sequence number of a pattern);when the characteristic information is expressed in another manner (suchas, a letter), an characteristic parameter (denoted by S) correspondingto the characteristic information may be further determined using apreset algorithm (a function, a formula, or the like), for example, anyformula of the foregoing formulas 1 to 3 may be used to determine thecharacteristic parameter S. In this embodiment of the presentdisclosure, a mapping relationship between the characteristicinformation and the characteristic parameter may be linear, or may benonlinear, which is not specifically limited in the present disclosure.Therefore, the characteristic parameter may be used to replace thecharacteristic information for calculation in the foregoing process. Inthis embodiment of the present disclosure, the characteristic parameterS may uniquely correspond to one user equipment or a pair of userequipments.

h. Optionally, in this embodiment of the present disclosure, theprocessing unit 420 is configured to determine a deviation valueaccording to the characteristic information used in selecting the targetresource, where the deviation value is used to indicate a deviation, ina preset pattern, of the target resource relative to a preset RSresource used to bear an RS, and the pattern is used to indicate an RSresource that is in the communication resource and used to bear an RS;and configured to determine the target resource according to thedeviation value, where the sixth information is used to indicate thedeviation value.

To be specific, a default pattern may be stipulated. For example, thepattern shown in FIG. 2A may be selected as the default pattern, and thecharacteristic parameter S is considered as a corresponding time domainshift. For example, S=2 represents that a symbol determined after asymbol, which is in the default pattern and used to bear an RS, movesrightwards for two units is the symbol (an example of the targetresource) used to bear an RS in current D2D communication. In addition,if a numerical value of the characteristic parameter S exceeds thenumber of symbols in a subframe, a modulus operation is performed on thenumber of symbols in a subframe using the numerical value of thecharacteristic parameter S.

i. Optionally, in this embodiment of the present disclosure, theprocessing unit 420 is configured to determine a configured valueaccording to the characteristic information used in selecting the targetresource, where the configured value is used to indicate a location ofthe target resource in the communication resource; and configured todetermine the target resource according to the configured value, wherethe sixth information is used to indicate the configured value.

To be specific, a characteristic parameter S may be used to indicate oneor more symbols in a time domain resource. For example, thecharacteristic parameter S is used to indicate a sequence number of asymbol in all symbols, so that the symbol may be determined, and thesymbol is used to bear an RS. In addition, if a numerical value of thecharacteristic parameter S exceeds the number of symbols, a modulusoperation is performed on the number of symbols using the numericalvalue of the characteristic parameter S, and the sequence number of thesymbol in all the symbols is determined according to the modulus value.

For another example, when OFDMA is used as an uplink multiple-accessscheme, as shown in FIG. 3A, it is allowed that two ports (space domainresource) use one RE, where a same sequence is used, and different OCCare used for differentiation; and sequences of different cells areorthogonal. One sequence is used on a symbol, and the sequence itselfmay allow 12 CS. Therefore, a pattern with two or four ports (port) maybe directly used (as shown in FIG. 3A). In this case, a user equipmentor a base station may select, from a D2D target resource according tocharacteristic information (or a characteristic parameter) of a userequipment, a resource used to bear an RS.

In addition, in this embodiment of the present disclosure, consideringthat a communication distance is relatively short in D2D communication,and relatively speaking, a channel change is not too radical; as aresult, a relatively small number of REs may be used to bear an RS (asshown in FIG. 3B or FIG. 3C). Therefore, multiple subsets may beextracted from the pattern with two ports or four ports, and thendifferent UE pairs are made to use different subsets. In this case, auser equipment or a base station may select, from a D2D target resourceaccording to characteristic information (or a characteristic parameter)of a user equipment, a resource used to bear an RS.

j. Multiple patterns may be set in advance, where the pattern indicatesa symbol (an example of a first target resource) that is in a subframeand carries an RS and/or a subcarrier (an example of a second targetresource). For example, FIG. 3B is a pattern, and FIG. 3C is a pattern.In addition, a pattern to be used is determined according to acharacteristic parameter S. For example, the pattern to be used may bedetermined by performing a modulus operation on a total number ofpatterns using the characteristic parameter S, and if multiple symbols(an example of a target resource) are used to bear an RS, resourcescorresponding to the multiple symbols may be not fixed, that is,different symbols may be separately selected according to differentcharacteristic parameters S (for example, one symbol is selectedaccording to S₁, and another symbol is selected according to S₂).

k. One pattern may be selected as a default pattern (for example, asshown in FIG. 3A, FIG. 3B, or FIG. 3C), and a parameter S is consideredas a corresponding time domain shift/frequency domain shift/space domainshift/code domain shift (shift), for example, S=2 represents that asymbol determined after a symbol, which is in the default pattern andused to bear an RS, moves rightwards for two units is the symbol (anexample of a target resource) used to bear an RS in current D2Dcommunication. In addition, if a numerical value of the parameter Sexceeds the number of symbols in a subframe, a modulus operation isperformed on the number of symbols in a subframe using the numericalvalue of the parameter S. Likewise, the parameter S may also be used toindicate a subcarrier (frequency domain resource), an antenna port(space domain resource), an RS sequence, an OCC, or a CS.

1. A characteristic parameter S may be used to indicate one or moresymbols in a time domain frequency, such as a sequence number of asymbol in all symbols, and the symbol is used to bear an RS. Inaddition, if a numerical value of the characteristic parameter S exceedsthe number of symbols, a modulus operation is performed on the number ofsymbols using the numerical value of the characteristic parameter S, andthe sequence number of the symbol in all the symbols is determinedaccording to the modulus value. Likewise, the parameter S may also beused to indicate a subcarrier (frequency domain resource), an antennaport (space domain resource), an RS sequence, an OCC, or a CS.

Therefore, in the apparatus for transmitting a reference signalaccording to this embodiment of the present disclosure, an overhead of areference signal can be effectively reduced.

It should be understood that the foregoing listed methods for selectinga target resource (determining a mapping relationship betweencharacteristic information and a target resource) are merely forillustrative description, and the present disclosure is not limitedthereto.

It should be noted that, in this embodiment of the present disclosure,if multiple resources (such as symbols for bearing an RS) are used tobear an RS (for example, two or more symbols in a subframe are used tobear an RS), relative locations of the multiple resources may be fixed,that is, a same shift (such as a time domain shift) may be obtained bymeans of calculation according to same characteristic information. Or,relative locations of the multiple resources may be not fixed, that is,different time domain shifts may be obtained by means of calculationaccording to different characteristic parameters S, so as to selectdifferent resources (for example, one symbol is selected according toS₁, and another symbol is selected according to S₂).

In this embodiment of the present disclosure, the target resourceincludes at least two of the time domain resource, the frequency domainresource, the space domain resource, or the code domain resource, wherethe processing unit 420 is configured to select a first target resourceaccording to the characteristic information of the first user equipmentand/or the characteristic information of the second user equipment; andconfigured to select a second target resource according to thecharacteristic information of the first user equipment and/or thecharacteristic information of the second user equipment.

To be specific, in this embodiment of the present disclosure, when thetarget resource includes at least two of the time domain resource, thefrequency domain resource, the space domain resource, or the code domainresource, and the at least two resources are respectively determinedaccording to characteristic information of different user equipments,the base station device may select the first target resource from theresource for the D2D communication according to the characteristicinformation of the first user equipment, or in other words, determine amapping relationship between the characteristic information of the firstuser equipment and the first target resource. In addition, the basestation device may select, according to the characteristic informationof the second user equipment, a second target resource from the resourcefor the D2D communication, or in other words, determine a mappingrelationship between the characteristic information of the second userequipment and the second target resource. It should be noted hereinthat, in this embodiment of the present disclosure, the first targetresource and the second target resource are different resources, butspecific types of the first target resource and the second targetresource are not limited, that is, the first target resource may be oneor more of the time domain resource, the frequency domain resource, thespace domain resource, or the code domain resource, and the secondtarget resource may be a resource, which is different from the firsttarget resource, in the time domain resource, the frequency domainresource, the space domain resource, or the code domain resource.

Processes herein in which the base station device determines and selectsa first pattern according to the characteristic information of the firstuser equipment and/or the characteristic information of the second userequipment, and the base station device determines and selects a secondpattern according to the characteristic information of the first userequipment and/or the characteristic information of the second userequipment are similar to processes in methods g to l; and descriptionsof the processes are omitted herein to avoid repeated description.

Optionally, in this embodiment of the present disclosure, a method for auser equipment to determine a target resource is the same as the methodfor the base station device to select a target resource. Therefore, inthis case, the base station device needs to notify the first userequipment of whether the target resource is determined according to thecharacteristic information of the first user equipment or determinedaccording to the characteristic information of the second userequipment, so as to ensure that the user equipment can accuratelydetermine the target resource. In this embodiment of the presentdisclosure, a process in which a user equipment determines a targetresource according to characteristic information is similar to a processin which the base station device selects a target resource according tocharacteristic information; and descriptions of the process are omittedherein to avoid repeated description.

Optionally, in this embodiment of the present disclosure, afterselecting the target resource, the base station device may furtherdirectly send information (such as a sequence number, in a subframe, ofa symbol that carries an RS), which indicates the target resource, to auser equipment, so that the user equipment may determine the targetresource according to the information that indicates the targetresource.

In the apparatus for transmitting a reference signal according to thisembodiment of the present disclosure, a target resource used to bear areference signal is determined according to characteristic informationof a user equipment that performs D2D communication, which can implementdynamic configuration of a resource, so that transmission of a referencesignal between each terminal pair can still be ensured even in a case inwhich the number of terminal pairs that perform D2D communication isrelatively large.

The apparatus 400 for transmitting a reference signal according to thisembodiment of the present disclosure may correspond to the base stationdevice in the method in this embodiment of the present disclosure, theforegoing other operations and/or functions of units and modules in theapparatus 400 for transmitting a reference signal are separately forimplementing corresponding processes in the method 200 in FIG. 4, which,for brevity, is not described herein again.

It should be understood that the term “and/or” in this specificationdescribes only an association relationship for describing associatedobjects and represents that three relationships may exist. For example,A and/or B may represent the following three cases, only A exists, bothA and B exist, and only B exists. In addition, the character “/” in thisspecification generally indicates an “or” relationship between theassociated objects.

It should be understood that sequence numbers of the foregoing processesdo not mean execution sequences in various embodiments of the presentdisclosure. The execution sequences of the processes should bedetermined according to functions and internal logic of the processes,and should not be construed as any limitation on the implementationprocesses of the embodiments of the present disclosure.

A person of ordinary skill in the art may be aware that, in combinationwith the examples described in the embodiments disclosed in thisspecification, units and algorithm steps may be implemented byelectronic hardware or a combination of computer software and electronichardware. Whether the functions are performed by hardware or softwaredepends on particular applications and design constraint conditions ofthe technical solutions. A person skilled in the art may use differentmethods to implement the described functions for each particularapplication, but it should not be considered that the implementationgoes beyond the scope of the present disclosure.

It may be clearly understood by a person skilled in the art that, forthe purpose of convenient and brief description, for a detailed workingprocess of the foregoing system, apparatus, and unit, reference may bemade to a corresponding process in the foregoing method embodiments, anddetails are not described herein again.

In the several embodiments provided in the present application, itshould be understood that the disclosed system, apparatus, and methodmay be implemented in other manners. For example, the describedapparatus embodiment is merely exemplary. For example, the unit divisionis merely logical function division and may be other division in actualimplementation. For example, a plurality of units or components may becombined or integrated into another system, or some features may beignored or not performed. In addition, the displayed or discussed mutualcouplings or direct couplings or communication connections may beimplemented through some interfaces. The indirect couplings orcommunication connections between the apparatuses or units may beimplemented in electronic, mechanical, or other forms.

The units described as separate parts may or may not be physicallyseparate, and parts displayed as units may or may not be physical units,may be located in one position, or may be distributed on a plurality ofnetwork units. A part or all of the units may be selected according toactual needs to achieve the objectives of the solutions of theembodiments.

In addition, functional units in the embodiments of the presentdisclosure may be integrated into one processing unit, or each of theunits may exist alone physically, or two or more units are integratedinto one unit.

When the functions are implemented in the form of a software functionalunit and sold or used as an independent product, the functions may bestored in a computer-readable storage medium. Based on such anunderstanding, the technical solutions of the present disclosure, or apart of the technical solutions may be implemented in a form of asoftware product. The software product is stored in a storage medium,and includes several instructions for instructing a computer device(which may be a personal computer, a server, or a network device) toperform all or a part of the steps of the methods described in theembodiments of the present disclosure. The foregoing storage mediumincludes any medium that can store program code, such as a universalserial bus (USB) flash drive, a removable hard disk, a read-only memory(ROM), a random access memory (RAM), a magnetic disk, or an opticaldisc.

The foregoing descriptions are merely specific implementation manners ofthe present disclosure, but are not intended to limit the protectionscope of the present disclosure. Any variation or replacement readilyfigured out by a person skilled in the art within the technical scopedisclosed in the present disclosure shall fall within the protectionscope of the present disclosure. Therefore, the protection scope of thepresent disclosure shall be subject to the protection scope of theclaims.

What is claimed is:
 1. A method for transmitting a reference signal indevice-to-device (D2D) communication by a first user equipment, whereinthe method comprises: determining, based on characteristic information,a target resource to bear a reference signal (RS) in a communicationresource for D2D communication, wherein the characteristic informationcomprises at least one of: first characteristic information uniquelyidentifying the first user equipment or second characteristicinformation uniquely identifying a second user equipment that performsD2D communication with the first user equipment, and wherein the targetresource is one of an orthogonal cover code or a cyclic shift; andtransmitting the RS to the second user equipment using the targetresource.
 2. The method of claim 1, wherein determining the targetresource comprises selecting the target resource from the communicationresource according to the characteristic information; and wherein beforetransmitting the RS to the second user equipment, the method furthercomprises either: sending first information to the second userequipment, wherein the first information indicates the characteristicinformation to the second user equipment to identify the targetresource; or sending second information to the second user equipment,wherein the second information indicates the target resource.
 3. Themethod of claim 2, wherein selecting the target resource comprises:selecting a target pattern from at least two preset patterns accordingto the characteristic information, wherein each of the at least twopreset patterns indicates a corresponding resource in the communicationresource for bearing an RS; and using a resource indicated by the targetpattern as the target resource, and wherein the second informationindicates the target pattern.
 4. The method of claim 2, whereinselecting the target resource comprises: determining a configured valueaccording to the characteristic information, wherein the configuredvalue indicates a location of the target resource in a preset pattern;and determining the target resource according to the configured valueand the preset pattern, wherein the second information indicates theconfigured value.
 5. The method of claim 1, wherein the target resourcecomprises at least one of a time domain resource, a frequency domainresource, a space domain resource, or a code domain resource.
 6. Amethod for transmitting a reference signal in device-to-device (D2D)communication, wherein the method comprises: acquiring characteristicinformation for selecting a target resource, wherein the characteristicinformation comprises at least one of first characteristic informationuniquely identifying a first user equipment or second characteristicinformation uniquely identifying a second user equipment that performsD2D communication with the first user equipment; selecting, from acommunication resource for D2D communication based on the characteristicinformation, the target resource to bear a reference signal (RS), andwherein the target resource is one of an orthogonal cover code or acyclic shift; and sending fifth information to at least one userequipment of the first user equipment or the second user equipment orsending sixth indication information to the at least one user equipment,wherein the fifth information indicates the characteristic information,and wherein the sixth information indicates the target resource, whereinthe fifth indication information and the sixth indication informationare for determining the target resource.
 7. The method of claim 6,wherein selecting the target resource comprises: selecting a targetpattern from at least two preset patterns according to thecharacteristic information, wherein each of the at least two presetpatterns indicates a corresponding resource in the communicationresource; and using a resource indicated by the target pattern as thetarget resource, and wherein the sixth information indicates the targetpattern.
 8. The method of claim 6, wherein selecting the target resourcecomprises: determining a configured value according to thecharacteristic information, wherein the configured value indicates alocation of the target resource in a preset pattern; and determining thetarget resource according to the configured value and the presetpattern, wherein the sixth information indicates the configured value.9. The method of claim 6, wherein the target resource comprises at leastone of a time domain resource, a frequency domain resource, a spacedomain resource, or a code domain resource.
 10. A first user equipmentfor transmitting a reference signal in device-to-device (D2D)communication, wherein the first user equipment comprises: a memory; anda processor in communication with the memory, wherein the processor isconfigured to: determine, based on characteristic information, a targetresource used to bear a reference signal (RS) in a communicationresource for device-to-device (D2D) communication, wherein thecharacteristic information comprises at least one of firstcharacteristic information uniquely identifying the first user equipmentor second characteristic information uniquely identifying a second userequipment that performs D2D communication with the first user equipment,and wherein the target resource is one of an orthogonal cover code or acyclic shift; and transmit the RS to the second user equipment using thetarget resource.
 11. The first user equipment of claim 10, wherein theprocessor is further configured to: select the target resource from thecommunication resource according to the characteristic information; sendfirst information to the second user equipment, wherein the firstinformation indicates the characteristic information to the second userequipment to identify the target resource according to the firstinformation; or send second information to the second user equipment,wherein the second information indicates the target resource.
 12. Thefirst user equipment of claim 11, wherein the processor is furtherconfigured to: select a target pattern from at least two preset patternsaccording to the characteristic information, wherein each pattern of theat least two preset patterns indicates a corresponding resource in thecommunication resource used to bear an RS; and use a resource indicatedby the target pattern as the target resource, and wherein the secondinformation indicates the target pattern.
 13. The first user equipmentof claim 11, wherein the processor is further configured to: determine aconfigured value according to the characteristic information, whereinthe configured value indicates a location of the target resource in apreset pattern; and determining the target resource according to theconfigured value and the preset pattern, wherein the second informationindicates the configured value.
 14. The first user equipment of claim10, wherein the target resource comprises at least one of a time domainresource, a frequency domain resource, a space domain resource, or acode domain resource.
 15. An apparatus for transmitting a referencesignal in device-to-device (D2D) communication, wherein the apparatuscomprises: a memory; and a processor in communication with the memory,wherein the processor is configured to: acquire characteristicinformation for selecting a target resource, wherein the characteristicinformation comprises at least one of first characteristic informationuniquely identifying the first user equipment or second characteristicinformation uniquely identifying a second user equipment that performsD2D communication with the first user equipment; select, from acommunication resource for the D2D communication based on thecharacteristic information, the target resource to bear a referencesignal (RS), and wherein the target resource is one of an orthogonalcover code or a cyclic shift; send fifth information to at least oneuser equipment of the first user equipment or the second user equipmentor send sixth information to the at least one user equipment, whereinthe fifth information indicates the characteristic information, whereinthe sixth information indicates the target resource, and wherein thefifth indication information and the sixth indication information arefor determining the target resource.
 16. The apparatus of claim 15,wherein the processor is further configured to: select a target patternfrom at least two preset patterns according to the characteristicinformation, wherein each of the at least two preset patterns indicatesa corresponding RS resource that is in the communication resource andused to bear an RS; and use an RS resource indicated by the targetpattern as the target resource, and wherein the sixth informationindicates the target pattern.
 17. The apparatus of claim 15, wherein theprocessor is further configured to: determine a configured valueaccording to the characteristic information, wherein the configuredvalue indicates a location of the target resource in the communicationresource; and determine the target resource according to the configuredvalue, wherein the sixth information indicates the configured value. 18.The apparatus of claim 15, wherein the target resource comprises atleast one of a time domain resource, a frequency domain resource, aspace domain resource, or a code domain resource.